aboutsummaryrefslogtreecommitdiff
path: root/templates/repo/commits_table.tmpl
diff options
context:
space:
mode:
authorSimon Dann <carbontwelve@users.noreply.github.com>2017-05-30 04:46:43 +0100
committer无闻 <u@gogs.io>2017-05-29 23:46:43 -0400
commitbf060387af47dbc9f0abb06025c754baad093061 (patch)
tree316dc214c2752e9349a9559177903cd5f286cc71 /templates/repo/commits_table.tmpl
parent0778d7de80ebbd6b1b7c7d7d5676655b7706f1f4 (diff)
ui: fix emoji not rendered in commits table (#4440)
Diffstat (limited to 'templates/repo/commits_table.tmpl')
-rw-r--r--templates/repo/commits_table.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl
index 717af85d..0cf823f5 100644
--- a/templates/repo/commits_table.tmpl
+++ b/templates/repo/commits_table.tmpl
@@ -40,14 +40,14 @@
{{end}}
</td>
- <td class="message collapsing has-emoji">
+ <td class="message collapsing">
{{/* Username or Reponame doesn't present we assume the source repository no longer exists */}}
{{if not (and $.Username $.Reponame)}}
<span class="ui sha label">{{ShortSHA1 .ID.String}}</span>
{{else}}
<a rel="nofollow" class="ui sha label" href="{{AppSubURL}}/{{$.Username}}/{{$.Reponame}}/commit/{{.ID}}">{{ShortSHA1 .ID.String}}</a>
{{end}}
- <span {{if gt .ParentCount 1}}class="grey text"{{end}}>{{RenderCommitMessage false .Summary $.RepoLink $.Repository.ComposeMetas}}</span>
+ <span class="{{if gt .ParentCount 1}}grey text {{end}} has-emoji">{{RenderCommitMessage false .Summary $.RepoLink $.Repository.ComposeMetas}}</span>
</td>
<td class="grey text right aligned">{{TimeSince .Author.When $.Lang}}</td>
</tr>