Browse Source

show no_desc info for guests

tags/v1.21.12.1
avadesian 4 years ago
parent
commit
bb45a79f3e
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      templates/repo/home.tmpl

+ 5
- 1
templates/repo/home.tmpl View File

@@ -157,7 +157,11 @@
<div id="repo-desc">
<h4 class="ui header">简介</h4>
<p>
{{if .Repository.DescriptionHTML}}<span class="description">{{.Repository.DescriptionHTML}}</span>{{else if .IsRepositoryAdmin}}<span class="no-description text-italic">{{.i18n.Tr "repo.no_desc"}}</span>{{end}}
{{if .Repository.DescriptionHTML}}
<span class="description">{{.Repository.DescriptionHTML}}</span>
{{else}}
<span class="no-description text-italic">{{.i18n.Tr "repo.no_desc"}}</span>
{{end}}
<a class="link" href="{{.Repository.Website}}">{{.Repository.Website}}</a>
</p>
</div>


Loading…
Cancel
Save