summaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-03-24 19:20:36 -0400
committerUnknwon <u@gogs.io>2015-03-24 19:20:36 -0400
commit8061447f0e81eddf9bf2de4f8f66d7453a741a0b (patch)
tree3f5930bb2030a3700be7854c01e6f4fd9b733862 /templates/repo
parent5f594d8774c520aaffd42c6d8e09a9c0d58e404f (diff)
downloadgitea-8061447f0e81eddf9bf2de4f8f66d7453a741a0b.tar.gz
gitea-8061447f0e81eddf9bf2de4f8f66d7453a741a0b.zip
#1114 'New Release' always visible
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/release/list.tmpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl
index 79e69b7a9a..5ac1be35d6 100644
--- a/templates/repo/release/list.tmpl
+++ b/templates/repo/release/list.tmpl
@@ -9,11 +9,13 @@
<span class="release"><strong>{{.i18n.Tr "repo.release.releases"}}</strong></span><!-- /
<a class="tag" href="{{AppSubUrl}}/{tag_link}">Tags</a> -->
<!-- comment : if in tag page, show a.release and span.tag please -->
+ {{if .IsRepositoryAdmin}}
<a class="btn" href="{{$.RepoLink}}/releases/new">
<button class="btn btn-medium btn-blue btn-radius">
{{.i18n.Tr "repo.release.new_release"}}
</button>
</a>
+ {{end}}
</h4>
<ul id="release-list" class="list-unstyled">
{{range .Releases}}