gogs/templates/explore/commit_list.tmpl

35 lines
1.2 KiB
Cheetah

{{if .Commits}}
<div class="ui attached table segment">
<table class="ui very basic striped fixed table single line" id="commits-table">
<thead>
<tr>
<th class="three wide">{{.i18n.Tr "explore.commits.repo"}}</th>
<th class="four wide">{{.i18n.Tr "repo.commits.author"}}</th>
<th class="nine wide message"><span class="sha">SHA1</span> {{.i18n.Tr "repo.commits.message"}}</th>
<th class="three wide right aligned">{{.i18n.Tr "repo.commits.date"}}</th>
</tr>
</thead>
<tbody>
{{range .Commits}}
<tr>
<td class="repo">
<a rel="nofollow" class="name" href="{{.Repo.Link}}">{{.Repo.Owner.Name}}/{{.Repo.Name}}</a>
</td>
<td class="author">
<img class="ui avatar image" src="{{AvatarLink .AuthorEmail}}" alt=""/>&nbsp;&nbsp;{{.AuthorName}}
</td>
<td class="message collapsing has-emoji">
<a rel="nofollow" class="ui sha label" href="{{.Repo.Link}}/commit/{{.Sha}}">{{ShortSHA1 .Sha}}</a>
<span>{{RenderCommitMessage false .Message .Repo.Link .Repo.ComposeMetas}}</span>
</td>
<td class="grey text right aligned">{{TimeSince .AuthorTime $.Lang}}</td>
</tr>
{{end}}
</tbody>
</table>
</div>
{{end}}