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}} - + {{ShortSha .ID.String}} {{RenderCommitMessage false .Summary $.RepoLink $.Repository.ComposeMetas}} 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 @@

- #{{.Issue.Index}} {{.Issue.Name}} + #{{.Issue.Index}} {{.Issue.Name}} diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index 44fc44913e15..f41e485cad2d 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -24,7 +24,7 @@ {{end}}

-
+
{{if .ReadmeExist}} {{if .FileContent}}{{.FileContent | Str2html}}{{end}} {{else if not .IsFileText}} diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index b3dee5610f10..c06ab3441fb1 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -10,7 +10,7 @@ {{.LastCommit.Author.Name}} {{end}} {{ShortSha .LastCommit.ID.String}} - {{RenderCommitMessage false .LastCommit.Summary .RepoLink $.Repository.ComposeMetas}} + {{RenderCommitMessage false .LastCommit.Summary .RepoLink $.Repository.ComposeMetas}} @@ -42,7 +42,7 @@ {{$entry.Name}} {{end}} - + {{ShortSha $commit.ID.String}} {{RenderCommitMessage false $commit.Summary $.RepoLink $.Repository.ComposeMetas}} diff --git a/templates/user/dashboard/feeds.tmpl b/templates/user/dashboard/feeds.tmpl index 7bb83d665bb5..4206308e3bd9 100644 --- a/templates/user/dashboard/feeds.tmpl +++ b/templates/user/dashboard/feeds.tmpl @@ -46,23 +46,23 @@ {{ $repoLink := .GetRepoLink}} {{if $push.Commits}} {{range $push.Commits}} -
  • {{ShortSha .Sha1}} {{.Message}}
  • +
  • {{ShortSha .Sha1}} {{.Message}}
  • {{end}} {{end}} {{if and (gt $push.Len 1) $push.CompareUrl}}
  • {{$.i18n.Tr "action.compare_commits" $push.Len}} ยป
  • {{end}}
    {{else if eq .GetOpType 6}} - {{index .GetIssueInfos 1}} + {{index .GetIssueInfos 1}} {{else if eq .GetOpType 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}}

    diff --git a/templates/user/dashboard/issues.tmpl b/templates/user/dashboard/issues.tmpl index a99a478170b0..c8d17b3cddbf 100644 --- a/templates/user/dashboard/issues.tmpl +++ b/templates/user/dashboard/issues.tmpl @@ -62,7 +62,7 @@ {{ $timeStr:= TimeSince .Created $.Lang }}
  • {{if not $.RepoID}}{{.Repo.Name}}{{end}}#{{.Index}}
    - {{.Name}} + {{.Name}} {{if .NumComments}} {{.NumComments}}