summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-01-30 20:46:45 +0800
committerGitHub <noreply@github.com>2017-01-30 20:46:45 +0800
commitf94869d2d19afd7110a0b996a7e6da339fb4e161 (patch)
tree8fe91beb0dcfce8e78515ebd525ee1decb633e68 /templates
parentd078aa30d6e6f40978ea68e9ae6eee53dc028ada (diff)
downloadgitea-f94869d2d19afd7110a0b996a7e6da339fb4e161.tar.gz
gitea-f94869d2d19afd7110a0b996a7e6da339fb4e161.zip
Track labels changed on issue view & resolved #542 (#788)
* track labels changed on issue view & resolved #542 * add missing head comment & sort & fix refresh
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/issue/view_content.tmpl11
1 files changed, 10 insertions, 1 deletions
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl
index 8c1f266f1c..ef32d0ba1e 100644
--- a/templates/repo/issue/view_content.tmpl
+++ b/templates/repo/issue/view_content.tmpl
@@ -58,7 +58,7 @@
{{range .Issue.Comments}}
{{ $createdStr:= TimeSince .Created $.Lang }}
- <!-- 0 = COMMENT, 1 = REOPEN, 2 = CLOSE, 3 = ISSUE_REF, 4 = COMMIT_REF, 5 = COMMENT_REF, 6 = PULL_REF -->
+ <!-- 0 = COMMENT, 1 = REOPEN, 2 = CLOSE, 3 = ISSUE_REF, 4 = COMMIT_REF, 5 = COMMENT_REF, 6 = PULL_REF, 7 = COMMENT_LABEL -->
{{if eq .Type 0}}
<div class="comment" id="{{.HashTag}}">
<a class="avatar" {{if gt .Poster.ID 0}}href="{{.Poster.HomeLink}}"{{end}}>
@@ -144,6 +144,15 @@
<span class="text grey">{{.Content | Str2html}}</span>
</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>
{{end}}
{{end}}