diff options
author | Mario Lubenka <mario.lubenka@googlemail.com> | 2019-11-01 23:02:41 +0100 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-11-01 22:02:41 +0000 |
commit | ba336f6f456835f1f327ee967991079dd220266d (patch) | |
tree | 7fa0484ffeff881d76cd48958a6e0a3f97b1a93a /templates/repo/wiki | |
parent | 9175556da0e89ec82bd3311990e34dd83dc7e3df (diff) | |
download | gitea-ba336f6f456835f1f327ee967991079dd220266d.tar.gz gitea-ba336f6f456835f1f327ee967991079dd220266d.zip |
Unifies commit list in repository commit table and wiki revision page (#7907)
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
Diffstat (limited to 'templates/repo/wiki')
-rw-r--r-- | templates/repo/wiki/revision.tmpl | 55 |
1 files changed, 1 insertions, 54 deletions
diff --git a/templates/repo/wiki/revision.tmpl b/templates/repo/wiki/revision.tmpl index c3a4f7636b..13d3a6227f 100644 --- a/templates/repo/wiki/revision.tmpl +++ b/templates/repo/wiki/revision.tmpl @@ -48,60 +48,7 @@ </h4> {{if and .Commits (gt .CommitCount 0)}} - <div class="ui attached table segment"> - <table class="ui very basic striped fixed table single line" id="commits-table"> - <thead> - <tr> - <th class="four wide">{{.i18n.Tr "repo.commits.author"}}</th> - <th class="tree wide sha">SHA1</th> - <th class="five wide message">{{.i18n.Tr "repo.commits.message"}}</th> - <th class="four wide">{{.i18n.Tr "repo.commits.date"}}</th> - </tr> - </thead> - <tbody class="commit-list"> - {{ $r:= List .Commits}} - {{range $r}} - <tr> - <td class="author"> - {{if .User}} - {{if .User.FullName}} - <img class="ui avatar image" src="{{.User.RelAvatarLink}}" alt=""/> <a href="{{AppSubUrl}}/{{.User.Name}}">{{.User.FullName}}</a> - {{else}} - <img class="ui avatar image" src="{{.User.RelAvatarLink}}" alt=""/> <a href="{{AppSubUrl}}/{{.User.Name}}">{{.Author.Name}}</a> - {{end}} - {{else}} - <img class="ui avatar image" src="{{AvatarLink .Author.Email}}" alt=""/> {{.Author.Name}} - {{end}} - </td> - <td class="sha"> - <label rel="nofollow" class="ui sha label {{if .Signature}} isSigned {{if .Verification.Verified }} isVerified {{end}}{{end}}"> - {{ShortSha .ID.String}} - {{if .Signature}} - <div class="ui detail icon button"> - {{if .Verification.Verified}} - <i title="{{.Verification.Reason}}" class="lock green icon"></i> - {{else}} - <i title="{{$.i18n.Tr .Verification.Reason}}" class="unlock icon"></i> - {{end}} - </div> - {{end}} - </label> - </td> - <td class="message"> - <span class="message-wrapper"> - <span class="commit-summary has-emoji{{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{.Summary}}</span> - {{if IsMultilineCommitMessage .Message}} - <button class="basic compact mini ui icon button commit-button"><i class="ellipsis horizontal icon"></i></button> - <pre class="commit-body" style="display: none;">{{RenderCommitBody .Message $.RepoLink $.Repository.ComposeMetas}}</pre> - {{end}} - </span> - </td> - <td class="grey text">{{TimeSince .Author.When $.Lang}}</td> - </tr> - {{end}} - </tbody> - </table> - </div> + {{template "repo/commits_list" .}} {{end}} {{template "base/paginate" .}} |