diff --git a/public/js/gogs.js b/public/js/gogs.js index 3459658585eb..c4b4668f9cba 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -878,7 +878,10 @@ $(document).ready(function () { img_dir: suburl + '/img/emoji', ignore_emoticons: true }); - emojify.run(); + var hasEmoji = document.getElementsByClassName('has-emoji'); + for (var i = 0; i < hasEmoji.length; i++) { + emojify.run(hasEmoji[i]); + } // Clipboard JS var clipboard = new Clipboard('.clipboard'); diff --git a/templates/explore/repo_list.tmpl b/templates/explore/repo_list.tmpl index f8dff6286954..43fa28c63030 100644 --- a/templates/explore/repo_list.tmpl +++ b/templates/explore/repo_list.tmpl @@ -16,7 +16,7 @@ {{.NumForks}} - {{if .Description}}
{{.Description}}
{{end}} + {{if .Description}}{{.Description}}
{{end}}{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}
{{end}} diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl index 4ca25e8e1e75..e13cc210899e 100644 --- a/templates/repo/commits_table.tmpl +++ b/templates/repo/commits_table.tmpl @@ -35,7 +35,7 @@ {{.Author.Name}} {{end}} - diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 208b3ad3f41e..47d53bf13c61 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -3,7 +3,7 @@ {{template "repo/header" .}}- {{if .Repository.DescriptionHtml}}{{.Repository.DescriptionHtml}}{{else}}{{.i18n.Tr "repo.no_desc"}}{{end}} + {{if .Repository.DescriptionHtml}}{{.Repository.DescriptionHtml}}{{else}}{{.i18n.Tr "repo.no_desc"}}{{end}} {{.Repository.Website}}
diff --git a/templates/repo/issue/view_title.tmpl b/templates/repo/issue/view_title.tmpl index f8d93a0bc02f..a1b4405486c6 100644 --- a/templates/repo/issue/view_title.tmpl +++ b/templates/repo/issue/view_title.tmpl @@ -1,7 +1,7 @@{{index .GetIssueInfos 1}}
+{{index .GetIssueInfos 1}}
{{else if eq .GetOpType 10}} - {{.GetIssueTitle}} -{{index .GetIssueInfos 1}}
+ {{.GetIssueTitle}} +{{index .GetIssueInfos 1}}
{{else if eq .GetOpType 11}} -{{index .GetIssueInfos 1}}
+{{index .GetIssueInfos 1}}
{{else if (or (eq .GetOpType 12) (eq .GetOpType 13))}} - {{.GetIssueTitle}} + {{.GetIssueTitle}} {{end}}{{TimeSince .GetCreate $.i18n.Lang}}