From 98c5a1e0068fe604b30e5654e556a7db9d569f04 Mon Sep 17 00:00:00 2001 From: bit Date: Fri, 14 Jul 2017 20:30:03 +0300 Subject: [PATCH] Only show "No Description" to repo admins (#2167) Only show note about missing description ("No Description") to repo admins, nobody else can change it. --- templates/repo/home.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@
{{template "base/alert" .}}

- {{if .Repository.DescriptionHTML}}{{.Repository.DescriptionHTML}}{{else}}{{.i18n.Tr "repo.no_desc"}}{{end}} + {{if .Repository.DescriptionHTML}}{{.Repository.DescriptionHTML}}{{else if .IsRepositoryAdmin}}{{.i18n.Tr "repo.no_desc"}}{{end}} {{.Repository.Website}}