summaryrefslogtreecommitdiffstats
path: root/templates/repo/home.tmpl
diff options
context:
space:
mode:
authorbit <j@mailb.org>2017-07-14 20:30:03 +0300
committerLauris BH <lauris@nix.lv>2017-07-14 20:30:03 +0300
commit98c5a1e0068fe604b30e5654e556a7db9d569f04 (patch)
treeca40ee8b3711f2d6a8e41578d350f94fc74e6838 /templates/repo/home.tmpl
parentdd758ad8dc76ef5c0baef095857d73707912a4ee (diff)
downloadgitea-98c5a1e0068fe604b30e5654e556a7db9d569f04.tar.gz
gitea-98c5a1e0068fe604b30e5654e556a7db9d569f04.zip
Only show "No Description" to repo admins (#2167)
Only show note about missing description ("No Description") to repo admins, nobody else can change it.
Diffstat (limited to 'templates/repo/home.tmpl')
-rw-r--r--templates/repo/home.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl
index 96109761ec..a87e6b7588 100644
--- a/templates/repo/home.tmpl
+++ b/templates/repo/home.tmpl
@@ -4,7 +4,7 @@
<div class="ui container">
{{template "base/alert" .}}
<p 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>
</p>
<div class="ui secondary menu">