summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-29 20:00:06 -0700
committerUnknwon <u@gogs.io>2016-08-29 20:00:06 -0700
commit28cf0e6aaa3cf9cc8e29524bd8e400587fc72d22 (patch)
tree03c2983e1e49650032e0e045c0b5dca90cb850dd /templates
parent92fb30c5260cc067da28ae3cd031b76f7b7976db (diff)
downloadgitea-28cf0e6aaa3cf9cc8e29524bd8e400587fc72d22.tar.gz
gitea-28cf0e6aaa3cf9cc8e29524bd8e400587fc72d22.zip
#3459 code quality improvement
Diffstat (limited to 'templates')
-rw-r--r--templates/.VERSION2
-rw-r--r--templates/repo/issue/labels.tmpl12
2 files changed, 6 insertions, 8 deletions
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" .}}
<div class="ui black label">{{.i18n.Tr "repo.issues.label_count" .NumLabels}}</div>
- {{if $.IsRepositoryWriter}}
- {{if eq .NumLabels 0}}
+ <div class="label list">
+ {{if and $.IsRepositoryWriter (eq .NumLabels 0)}}
<div class="ui centered grid">
<div class="twelve wide column eight wide computer column">
- <div class="ui attached left aligned segment" style="margin-top:30px">
+ <div class="ui attached left aligned segment">
<h4 class="ui header">
{{.i18n.Tr "repo.issues.label_templates.title"}}
<a target="_blank"
- href="https://github.com/gogits/go-gogs-client/wiki/Repositories#litte-notes-on-label-template">
+ href="https://discuss.gogs.io/t/how-to-use-predefined-label-templates/599">
<span class="octicon octicon-question"></span>
</a>
</h4>
@@ -54,7 +54,7 @@
{{.CsrfTokenHtml}}
<div class="field">
<div class="ui selection dropdown">
- <input type="hidden" name="template_name" id="templatename" value="Default">
+ <input type="hidden" name="template_name" value="Default">
<div class="default text">{{.i18n.Tr "repo.issues.label_templates.helper"}}</div>
<div class="menu">
{{range .LabelTemplates}}
@@ -69,9 +69,7 @@
</div>
</div>
{{end}}
- {{end}}
- <div class="label list">
{{range .Labels}}
<li class="item">
<div class="ui label" style="color: {{.ForegroundColor}}; background-color: {{.Color}}"><i class="octicon octicon-tag"></i> {{.Name}}</div>