Browse Source

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

pull/4484/merge
Simon Dann 8 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}} {{end}}
</td> </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 */}} {{/* Username or Reponame doesn't present we assume the source repository no longer exists */}}
{{if not (and $.Username $.Reponame)}} {{if not (and $.Username $.Reponame)}}
<span class="ui sha label">{{ShortSHA1 .ID.String}}</span> <span class="ui sha label">{{ShortSHA1 .ID.String}}</span>
{{else}} {{else}}
<a rel="nofollow" class="ui sha label" href="{{AppSubURL}}/{{$.Username}}/{{$.Reponame}}/commit/{{.ID}}">{{ShortSHA1 .ID.String}}</a> <a rel="nofollow" class="ui sha label" href="{{AppSubURL}}/{{$.Username}}/{{$.Reponame}}/commit/{{.ID}}">{{ShortSHA1 .ID.String}}</a>
{{end}} {{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>
<td class="grey text right aligned">{{TimeSince .Author.When $.Lang}}</td> <td class="grey text right aligned">{{TimeSince .Author.When $.Lang}}</td>
</tr> </tr>

Loading…
Cancel
Save