diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-02-11 20:56:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-11 20:56:57 +0800 |
commit | 8a0be5e9f01caaf3667c420f08541ac7c26127b8 (patch) | |
tree | a1f2cfc2e7fd4932cd350121746266c03506e86a /templates | |
parent | 442145dbd348a18915de80faea68f30a9d9309b3 (diff) | |
download | gitea-8a0be5e9f01caaf3667c420f08541ac7c26127b8.tar.gz gitea-8a0be5e9f01caaf3667c420f08541ac7c26127b8.zip |
Bug fixed for deleted label in issue comment (#904)
* bug fixed for deleted label in issue comment
* fix indent
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/issue/view_content.tmpl | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 40993e54d2..381c80cdaf 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -145,14 +145,16 @@ </div> </div> {{else if eq .Type 7}} - <div class="event"> - <span class="octicon octicon-primitive-dot"></span> - <a class="ui avatar image" href="{{.Poster.HomeLink}}"> - <img src="{{.Poster.RelAvatarLink}}"> - </a> - <span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.Name}}</a> - {{if .Content}}{{$.i18n.Tr "repo.issues.add_label_at" .Label.ForegroundColor .Label.Color .Label.Name $createdStr | Safe}}{{else}}{{$.i18n.Tr "repo.issues.remove_label_at" .Label.ForegroundColor .Label.Color .Label.Name $createdStr | Safe}}{{end}}</span> - </div> + {{if .Label}} + <div class="event"> + <span class="octicon octicon-primitive-dot"></span> + <a class="ui avatar image" href="{{.Poster.HomeLink}}"> + <img src="{{.Poster.RelAvatarLink}}"> + </a> + <span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.Name}}</a> + {{if .Content}}{{$.i18n.Tr "repo.issues.add_label_at" .Label.ForegroundColor .Label.Color .Label.Name $createdStr | Safe}}{{else}}{{$.i18n.Tr "repo.issues.remove_label_at" .Label.ForegroundColor .Label.Color .Label.Name $createdStr | Safe}}{{end}}</span> + </div> + {{end}} {{else if eq .Type 8}} <div class="event"> <span class="octicon octicon-primitive-dot"></span> |