From c0d41b1b77169553006bd9211d025de4da8bafd8 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Tue, 13 Mar 2018 04:03:55 +0200 Subject: Add label descriptions (#3662) * Add label descriptions * Add default descriptions to label template --- templates/repo/issue/labels.tmpl | 39 ++++++++++++++++++++------ templates/repo/issue/list.tmpl | 2 +- templates/repo/issue/view_content/sidebar.tmpl | 5 ++-- templates/user/dashboard/issues.tmpl | 2 +- 4 files changed, 36 insertions(+), 12 deletions(-) (limited to 'templates') diff --git a/templates/repo/issue/labels.tmpl b/templates/repo/issue/labels.tmpl index ab3afe5976..3e360cb726 100644 --- a/templates/repo/issue/labels.tmpl +++ b/templates/repo/issue/labels.tmpl @@ -14,11 +14,16 @@
{{.CsrfTokenHtml}}
-
+
+
+
+ +
+
@@ -85,14 +90,27 @@
{{end}} +
+ {{range .Labels}}
  • -
    {{.Name}}
    - {{if $.IsRepositoryWriter}} - {{$.i18n.Tr "repo.issues.label_delete"}} - {{$.i18n.Tr "repo.issues.label_edit"}} - {{end}} - {{$.i18n.Tr "repo.issues.label_open_issues" .NumOpenIssues}} +
    +
    +
    {{.Name}}
    +
    +
    + {{.Description}} +
    + + +
  • {{end}}
    @@ -129,11 +147,16 @@ {{.CsrfTokenHtml}}
    -
    +
    +
    +
    + +
    +
    diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl index 794a488134..04a11ca5cc 100644 --- a/templates/repo/issue/list.tmpl +++ b/templates/repo/issue/list.tmpl @@ -191,7 +191,7 @@ {{.Ref}} {{end}} {{range .Labels}} - {{.Name}} + {{.Name}} {{end}} {{if .NumComments}} diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl index 23fd91b0bd..dff064f777 100644 --- a/templates/repo/issue/view_content/sidebar.tmpl +++ b/templates/repo/issue/view_content/sidebar.tmpl @@ -10,7 +10,8 @@
    @@ -18,7 +19,7 @@ {{.i18n.Tr "repo.issues.new.no_label"}} {{range .Labels}} {{end}} diff --git a/templates/user/dashboard/issues.tmpl b/templates/user/dashboard/issues.tmpl index c5177402bb..b41301b108 100644 --- a/templates/user/dashboard/issues.tmpl +++ b/templates/user/dashboard/issues.tmpl @@ -71,7 +71,7 @@ especially on mobile views. */}} {{range .}} - {{.Name}} + {{.Name}} {{end}} {{end}} -- cgit v1.2.3