#1114 'New Release' always visible

This commit is contained in:
Unknwon 2015-03-24 19:20:36 -04:00
parent 5f594d8774
commit 8061447f0e

AI 샘플 코드 생성 중입니다

Loading...

View File

@ -9,11 +9,13 @@
<span class="release"><strong>{{.i18n.Tr "repo.release.releases"}}</strong></span><!-- / <span class="release"><strong>{{.i18n.Tr "repo.release.releases"}}</strong></span><!-- /
<a class="tag" href="{{AppSubUrl}}/{tag_link}">Tags</a> --> <a class="tag" href="{{AppSubUrl}}/{tag_link}">Tags</a> -->
<!-- comment : if in tag page, show a.release and span.tag please --> <!-- comment : if in tag page, show a.release and span.tag please -->
{{if .IsRepositoryAdmin}}
<a class="btn" href="{{$.RepoLink}}/releases/new"> <a class="btn" href="{{$.RepoLink}}/releases/new">
<button class="btn btn-medium btn-blue btn-radius"> <button class="btn btn-medium btn-blue btn-radius">
{{.i18n.Tr "repo.release.new_release"}} {{.i18n.Tr "repo.release.new_release"}}
</button> </button>
</a> </a>
{{end}}
</h4> </h4>
<ul id="release-list" class="list-unstyled"> <ul id="release-list" class="list-unstyled">
{{range .Releases}} {{range .Releases}}