Browse Source

ui: fix emoji not rendered in commits table (#4440)

pull/4484/merge
Simon Dann 7 years ago committed by 无闻
parent
commit
bf060387af
  1. 4
      templates/repo/commits_table.tmpl

4
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>

Loading…
Cancel
Save