summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-12-16 20:15:58 +0000
committerGitHub <noreply@github.com>2020-12-16 15:15:58 -0500
commit78b9ef35869be8e27af43717853425fcd7b3dcbf (patch)
tree6f7537ef89fabea989b88c8352d8a6144130f94a
parent90dfe445c22ed5fbd751ecdcfce15879ad24b707 (diff)
downloadgitea-78b9ef35869be8e27af43717853425fcd7b3dcbf.tar.gz
gitea-78b9ef35869be8e27af43717853425fcd7b3dcbf.zip
Add emoji in label to project boards (#13978) (#14021)
* Update view.tmpl Added rendering of emoji to project label * Add RenderEmojiPlain to the title and remove has-emoji Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Rakshith Ravi <rakshith.ravi@gmx.com> Co-authored-by: zeripath <art27@cantab.net>
-rw-r--r--templates/repo/projects/view.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/projects/view.tmpl b/templates/repo/projects/view.tmpl
index c25a05c5c7..beb9fea7b6 100644
--- a/templates/repo/projects/view.tmpl
+++ b/templates/repo/projects/view.tmpl
@@ -130,7 +130,7 @@
</div>
<div class="extra content">
{{ range .Labels }}
- <a class="ui label has-emoji" href="{{$.RepoLink}}/issues?labels={{.ID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}; margin-bottom: 3px;" title="{{.Description}}">{{.Name}}</a>
+ <a class="ui label" href="{{$.RepoLink}}/issues?labels={{.ID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}; margin-bottom: 3px;" title="{{.Description | RenderEmojiPlain}}">{{.Name | RenderEmoji}}</a>
{{ end }}
</div>
</div>