diff options
author | mrsdizzie <info@mrsdizzie.com> | 2020-04-30 04:10:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-30 09:10:15 +0100 |
commit | a2683e5ddb65c4fb4455872cbf377b59dba14f86 (patch) | |
tree | a5dfcfd0da878d1c6925c55760d530c99b46549e /templates/user | |
parent | 310699bca71f15cc7b46363800574ba6e74d8c5c (diff) | |
download | gitea-a2683e5ddb65c4fb4455872cbf377b59dba14f86.tar.gz gitea-a2683e5ddb65c4fb4455872cbf377b59dba14f86.zip |
Allow emoji short code in labels (#11250)
* Allow emoji short code in labels
As title, turn :alias: type short code into emojis when rendering labels to match previous behavior
* Update models/issue_label.go
Co-Authored-By: John Olheiser <john.olheiser@gmail.com>
* render text in templates not code
* remove has-emoji class
🧙♀️
* fix new issue form
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/dashboard/issues.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/dashboard/issues.tmpl b/templates/user/dashboard/issues.tmpl index 92e87da0ab..5d8bc327e6 100644 --- a/templates/user/dashboard/issues.tmpl +++ b/templates/user/dashboard/issues.tmpl @@ -123,7 +123,7 @@ especially on mobile views. */}} <span style="line-height: 2.5"> {{range .}} - <a class="ui label has-emoji" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&state={{$.State}}&labels={{.ID}}&milestone={{$.MilestoneID}}&assignee={{$.AssigneeID}}&repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]" style="color: {{.ForegroundColor}}; background-color: {{.Color}}" title="{{.Description}}">{{.Name}}</a> + <a class="ui label" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&state={{$.State}}&labels={{.ID}}&milestone={{$.MilestoneID}}&assignee={{$.AssigneeID}}&repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]" style="color: {{.ForegroundColor}}; background-color: {{.Color}}" title="{{.Description}}">{{.Name | RenderEmojiPlain}}</a> {{end}} </span> {{end}} |