Skip to content

Commit 8061447

Browse files
committed
gogs#1114 'New Release' always visible
1 parent 5f594d8 commit 8061447

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/repo/release/list.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99
<span class="release"><strong>{{.i18n.Tr "repo.release.releases"}}</strong></span><!-- /
1010
<a class="tag" href="{{AppSubUrl}}/{tag_link}">Tags</a> -->
1111
<!-- comment : if in tag page, show a.release and span.tag please -->
12+
{{if .IsRepositoryAdmin}}
1213
<a class="btn" href="{{$.RepoLink}}/releases/new">
1314
<button class="btn btn-medium btn-blue btn-radius">
1415
{{.i18n.Tr "repo.release.new_release"}}
1516
</button>
1617
</a>
18+
{{end}}
1719
</h4>
1820
<ul id="release-list" class="list-unstyled">
1921
{{range .Releases}}

0 commit comments

Comments
 (0)