diff options
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/release/list.tmpl | 2 |
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}} |