diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-12 20:22:35 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-12 20:22:35 -0400 |
commit | c117f9e73f148468c624f31be237af7a691533a0 (patch) | |
tree | bf1188d2f6f2df4d58f410d9e52ca33c9dfee302 /templates | |
parent | f979d0d6b9ae2c4b5c553df13dfe49b81d8396c1 (diff) | |
download | gitea-c117f9e73f148468c624f31be237af7a691533a0.tar.gz gitea-c117f9e73f148468c624f31be237af7a691533a0.zip |
Fix #166
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/commits.tmpl | 4 | ||||
-rw-r--r-- | templates/repo/single_file.tmpl | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/commits.tmpl b/templates/repo/commits.tmpl index 74b03074bc..385f9d5bae 100644 --- a/templates/repo/commits.tmpl +++ b/templates/repo/commits.tmpl @@ -41,8 +41,8 @@ </table> </div> {{if not .IsSearchPage}}<ul class="pagination" id="commits-pager"> - {{if .LastPageNum}}<li><a href="{{.RepoLink}}/commits/{{.BranchName}}?p={{.LastPageNum}}" rel="nofollow">« Newer</a></li>{{end}} - {{if .NextPageNum}}<li><a href="{{.RepoLink}}/commits/{{.BranchName}}?p={{.NextPageNum}}" rel="nofollow">» Older</a></li>{{end}} + {{if .LastPageNum}}<li><a href="{{.RepoLink}}/commits/{{.BranchName}}{{if .FileName}}/{{.FileName}}{{end}}?p={{.LastPageNum}}" rel="nofollow">« Newer</a></li>{{end}} + {{if .NextPageNum}}<li><a href="{{.RepoLink}}/commits/{{.BranchName}}{{if .FileName}}/{{.FileName}}{{end}}?p={{.NextPageNum}}" rel="nofollow">» Older</a></li>{{end}} </ul>{{end}} </div> </div> diff --git a/templates/repo/single_file.tmpl b/templates/repo/single_file.tmpl index 95c41b7017..8c09f3ec1c 100644 --- a/templates/repo/single_file.tmpl +++ b/templates/repo/single_file.tmpl @@ -16,7 +16,7 @@ <a class="btn btn-default hidden" href="#">Edit</a> <a class="btn btn-default" href="{{.FileLink}}" rel="nofollow">Raw</a> <a class="btn btn-default hidden" href="#">Blame</a> - <a class="btn btn-default hidden" href="#">History</a> + <a class="btn btn-default" href="{{.RepoLink}}/commits/{{.BranchName}}/{{.TreeName}}">History</a> <a class="btn btn-danger hidden" href="#">Delete</a> </div> {{end}} |