diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/create.tmpl | 4 | ||||
-rw-r--r-- | templates/repo/issue/labels/label_load_template.tmpl | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index 721caec23f..85b02f394d 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -117,8 +117,8 @@ <div class="default text">{{.locale.Tr "repo.issue_labels_helper"}}</div> <div class="menu"> <div class="item" data-value="">{{.locale.Tr "repo.issue_labels_helper"}}</div> - {{range $template, $labels := .LabelTemplates}} - <div class="item" data-value="{{$template}}">{{$template}}<br><i>({{$labels}})</i></div> + {{range .LabelTemplateFiles}} + <div class="item" data-value="{{.DisplayName}}">{{.DisplayName}}<br><i>({{.Description}})</i></div> {{end}} </div> </div> diff --git a/templates/repo/issue/labels/label_load_template.tmpl b/templates/repo/issue/labels/label_load_template.tmpl index 21caf2b472..d883953bf6 100644 --- a/templates/repo/issue/labels/label_load_template.tmpl +++ b/templates/repo/issue/labels/label_load_template.tmpl @@ -10,8 +10,8 @@ <input type="hidden" name="template_name" value="Default"> <div class="default text">{{.locale.Tr "repo.issues.label_templates.helper"}}</div> <div class="menu"> - {{range $template, $labels := .LabelTemplates}} - <div class="item" data-value="{{$template}}">{{$template}}<br><i>({{$labels}})</i></div> + {{range .LabelTemplateFiles}} + <div class="item" data-value="{{.DisplayName}}">{{.DisplayName}}<br><i>({{.Description}})</i></div> {{end}} </div> {{svg "octicon-triangle-down" 18 "dropdown icon"}} |