From 28cf0e6aaa3cf9cc8e29524bd8e400587fc72d22 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 29 Aug 2016 20:00:06 -0700 Subject: #3459 code quality improvement --- templates/.VERSION | 2 +- templates/repo/issue/labels.tmpl | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) (limited to 'templates') diff --git a/templates/.VERSION b/templates/.VERSION index 8bc055741c..8e1e3e9848 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.9.93.0829 \ No newline at end of file +0.9.94.0829 \ No newline at end of file diff --git a/templates/repo/issue/labels.tmpl b/templates/repo/issue/labels.tmpl index 85c18570a2..6462294512 100644 --- a/templates/repo/issue/labels.tmpl +++ b/templates/repo/issue/labels.tmpl @@ -36,15 +36,15 @@ {{template "base/alert" .}}
{{.i18n.Tr "repo.issues.label_count" .NumLabels}}
- {{if $.IsRepositoryWriter}} - {{if eq .NumLabels 0}} +
+ {{if and $.IsRepositoryWriter (eq .NumLabels 0)}}
-
+

{{.i18n.Tr "repo.issues.label_templates.title"}} + href="https://discuss.gogs.io/t/how-to-use-predefined-label-templates/599">

@@ -54,7 +54,7 @@ {{.CsrfTokenHtml}}
{{end}} - {{end}} -
{{range .Labels}}
  • {{.Name}}
    -- cgit v1.2.3