diff options
author | Gabriel Silva Simões <simoes.sgabriel@gmail.com> | 2019-01-27 16:13:15 -0500 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-01-27 21:13:15 +0000 |
commit | 5f4a40c4a3d8afaaf9f3b43ded441a26c22c7f3b (patch) | |
tree | bd4617d29fc80b0ed797f62063349c83d9bc842a /templates/repo/home.tmpl | |
parent | 182a6d6885539a69fab9db89b9253d7ffb2cc4e2 (diff) | |
download | gitea-5f4a40c4a3d8afaaf9f3b43ded441a26c22c7f3b.tar.gz gitea-5f4a40c4a3d8afaaf9f3b43ded441a26c22c7f3b.zip |
Revert #3711 overwrite of only show "No Description" to repo admins #2167 (#5836)
Revert #3711 overwrite of only show "No Description" to repo admins #2167 and add tests to prevent accidental overwrite again.
Diffstat (limited to 'templates/repo/home.tmpl')
-rw-r--r-- | templates/repo/home.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 5e07f0f39d..13101827ec 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -5,7 +5,7 @@ {{template "base/alert" .}} <div class="ui repo-description"> <div id="repo-desc"> - {{if .Repository.DescriptionHTML}}<span class="description has-emoji">{{.Repository.DescriptionHTML}}</span>{{else}}<span class="no-description text-italic">{{.i18n.Tr "repo.no_desc"}}</span>{{end}} + {{if .Repository.DescriptionHTML}}<span class="description has-emoji">{{.Repository.DescriptionHTML}}</span>{{else if .IsRepositoryAdmin}}<span class="no-description text-italic">{{.i18n.Tr "repo.no_desc"}}</span>{{end}} <a class="link" href="{{.Repository.Website}}">{{.Repository.Website}}</a> </div> {{if .RepoSearchEnabled}} |