Explorar o código

minor HTML fix

Unknwon %!s(int64=9) %!d(string=hai) anos
pai
achega
612d0d6d25
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      templates/repo/release/list.tmpl

+ 1 - 1
templates/repo/release/list.tmpl

@@ -37,7 +37,7 @@
           {{if .PublisherID}}
             <h3>
               <a href="{{$.RepoLink}}/src/{{.TagName}}">{{.Title}}</a> 
-              <small>(<a href="{{$.RepoLink}}/releases/edit/{{.TagName}}" rel="nofollow">{{$.i18n.Tr "repo.release.edit"}}</a>)</small>
+              {{if .IsRepositoryAdmin}}<small>(<a href="{{$.RepoLink}}/releases/edit/{{.TagName}}" rel="nofollow">{{$.i18n.Tr "repo.release.edit"}}</a>)</small>{{end}}
             </h3>
             <p class="text grey">
               <span class="author">