Prepare for v0.3.1 hotfix

tokarchuk/v1.17
Unknown 11 years ago
parent 31805e2bbe
commit 2401e68d7e
  1. 2
      README.md
  2. 2
      README_ZH.md
  3. 2
      gogs.go
  4. BIN
      public/img/favicon.bak.png
  5. BIN
      public/img/favicon.png
  6. 1
      routers/repo/commit.go
  7. 4
      templates/repo/diff.tmpl

@ -5,7 +5,7 @@ Gogs(Go Git Service) is a Self Hosted Git Service in the Go Programming Language
![Demo](http://gowalker.org/public/gogs_demo.gif) ![Demo](http://gowalker.org/public/gogs_demo.gif)
##### Current version: 0.3.0 Alpha ##### Current version: 0.3.1 Alpha
### NOTICES ### NOTICES

@ -5,7 +5,7 @@ Gogs(Go Git Service) 是一个由 Go 语言编写的自助 Git 托管服务。
![Demo](http://gowalker.org/public/gogs_demo.gif) ![Demo](http://gowalker.org/public/gogs_demo.gif)
##### 当前版本:0.3.0 Alpha ##### 当前版本:0.3.1 Alpha
## 开发目的 ## 开发目的

@ -19,7 +19,7 @@ import (
// Test that go1.2 tag above is included in builds. main.go refers to this definition. // Test that go1.2 tag above is included in builds. main.go refers to this definition.
const go12tag = true const go12tag = true
const APP_VER = "0.3.0.0427 Alpha" const APP_VER = "0.3.1.0427 Alpha"
func init() { func init() {
base.AppVer = APP_VER base.AppVer = APP_VER

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 11 KiB

@ -97,6 +97,7 @@ func Diff(ctx *middleware.Context, params martini.Params) {
parents[i] = sha.String() parents[i] = sha.String()
if err != nil { if err != nil {
ctx.Handle(404, "repo.Diff", err) ctx.Handle(404, "repo.Diff", err)
return
} }
} }

@ -8,13 +8,11 @@
<a class="pull-right btn btn-primary btn-sm" rel="nofollow" href="{{.SourcePath}}">Browse Source</a> <a class="pull-right btn btn-primary btn-sm" rel="nofollow" href="{{.SourcePath}}">Browse Source</a>
<h4>{{.Commit.Message}}</h4> <h4>{{.Commit.Message}}</h4>
</div> </div>
{{ $username := .Username }}
{{ $reponame := .Reponame }}
<div class="panel-body"> <div class="panel-body">
<span class="pull-right"> <span class="pull-right">
<ul class="list-unstyled"> <ul class="list-unstyled">
{{range .Parents}} {{range .Parents}}
<li>parent <a href="/{{$username}}/{{$reponame}}/commit/{{.}}"><span class="label label-default sha">{{ShortSha .}}</span></a></li> <li>parent <a href="{{$.RepoLink}}/commit/{{.}}"><span class="label label-default sha">{{ShortSha .}}</span></a></li>
{{end}} {{end}}
<li>commit <span class="label label-default sha">{{ShortSha .CommitId}}</span></li> <li>commit <span class="label label-default sha">{{ShortSha .CommitId}}</span></li>
</ul> </ul>

Loading…
Cancel
Save