Browse Source

minor HTML fix

Unknwon 9 years ago
parent
commit
612d0d6d25
1 changed files with 1 additions and 1 deletions
  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">