From 0b72c00fadcacda920893c991cd858a3d6dd52c7 Mon Sep 17 00:00:00 2001 From: John Olheiser <42128690+jolheiser@users.noreply.github.com> Date: Sat, 16 Feb 2019 11:33:09 -0600 Subject: Allow labels to contain emoji (#6063) * Add emoji to labels Minor cleanup of tribute code in footer.tmpl Signed-off-by: jolheiser * Quick find/replace in other i18n files containing label translations Signed-off-by: jolheiser * Revert "Quick find/replace in other i18n files containing label translations" This reverts commit ec3e1a3a1775989301bb2c1cd08e8871b317688d. * Add style to overwrite emoji height in labels * Revert Makefile change that makes Windows work --- templates/base/footer.tmpl | 18 ++++++++++++++---- templates/repo/issue/labels.tmpl | 6 +++--- templates/repo/issue/list.tmpl | 2 +- templates/repo/issue/new_form.tmpl | 4 ++-- templates/repo/issue/view_content/sidebar.tmpl | 4 ++-- 5 files changed, 22 insertions(+), 12 deletions(-) (limited to 'templates') diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl index 6868b918b6..2481b2187c 100644 --- a/templates/base/footer.tmpl +++ b/templates/base/footer.tmpl @@ -68,8 +68,11 @@ } return itemStr; } - }) - issuesTribute.attach(document.getElementById('content')) + }); + var content = document.getElementById('content'); + if (content != null) { + issuesTribute.attach(content); + } {{end}} diff --git a/templates/repo/issue/labels.tmpl b/templates/repo/issue/labels.tmpl index 877ba1c176..956fc955a0 100644 --- a/templates/repo/issue/labels.tmpl +++ b/templates/repo/issue/labels.tmpl @@ -17,7 +17,7 @@
- +
@@ -98,7 +98,7 @@
  • -
    {{.Name}}
    +
    {{.Name}}
    {{.Description}} @@ -151,7 +151,7 @@
    - +
    diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl index edf88ebf41..ebdd3dbb67 100644 --- a/templates/repo/issue/list.tmpl +++ b/templates/repo/issue/list.tmpl @@ -192,7 +192,7 @@ {{.Ref}} {{end}} {{range .Labels}} - {{.Name}} + {{.Name}} {{end}} {{if .NumComments}} diff --git a/templates/repo/issue/new_form.tmpl b/templates/repo/issue/new_form.tmpl index f05ea333ba..7dafc6766c 100644 --- a/templates/repo/issue/new_form.tmpl +++ b/templates/repo/issue/new_form.tmpl @@ -46,14 +46,14 @@
    {{.i18n.Tr "repo.issues.new.no_label"}} {{range .Labels}} - {{.Name}} + {{.Name}} {{end}}
    diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl index 4eb55cdd41..8cb01fe00e 100644 --- a/templates/repo/issue/view_content/sidebar.tmpl +++ b/templates/repo/issue/view_content/sidebar.tmpl @@ -10,7 +10,7 @@ @@ -19,7 +19,7 @@ {{.i18n.Tr "repo.issues.new.no_label"}} {{range .Labels}} {{end}} -- cgit v1.2.3