diff options
author | Unknwon <u@gogs.io> | 2015-07-25 00:49:40 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-07-25 00:49:40 +0800 |
commit | 54b58e988d4fac4a3f67feef39d62134352fb07c (patch) | |
tree | db32c6c6860f6b6bacb0c90c32a25b5a3b7c8002 /templates/repo/view_file.tmpl | |
parent | dc4aab9925b46f8ad4b18f7926e2904163c1c5b5 (diff) | |
parent | 70d44e9565e372c73d4f0f42273d4899e8e07f75 (diff) | |
download | gitea-54b58e988d4fac4a3f67feef39d62134352fb07c.tar.gz gitea-54b58e988d4fac4a3f67feef39d62134352fb07c.zip |
Merge branch 'develop' of github.com:gogits/gogs into feature/page_issues
Diffstat (limited to 'templates/repo/view_file.tmpl')
-rw-r--r-- | templates/repo/view_file.tmpl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index d33cc95023..4d11170bd0 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -12,6 +12,11 @@ <strong class="file-name">{{.FileName}}</strong><span class="file-size">{{FileSize .FileSize}}</span> {{end}} {{if not .ReadmeInList}} + {{if not .IsCommit}} + <a class="right" href="{{.RepoLink}}/src/{{.CommitId}}/{{.TreeName}}"> + <button class="btn btn-medium btn-gray btn-right-radius btn-comb">{{.i18n.Tr "repo.file_permalink"}}</button> + </a> + {{end}} <a class="right" href="{{.RepoLink}}/commits/{{EscapePound .BranchName}}/{{.TreeName}}"> <button class="btn btn-medium btn-gray btn-right-radius btn-comb">{{.i18n.Tr "repo.file_history"}}</button> </a> |