Browse Source

minor HTML fix

Unknwon 9 năm trước cách đây
mục cha
commit
612d0d6d25
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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">