diff options
author | Cherrg <michael@gnehr.de> | 2019-07-11 16:45:10 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2019-07-11 22:45:10 +0800 |
commit | a7b1ba0e3d49e699ce7d6e614bc8605aef0a2c9a (patch) | |
tree | f182ede1617c092badb4feff1c5b2e3edcf70352 /templates | |
parent | a0820e09fbf78f84722b44563b5f44a92a8a5a0e (diff) | |
download | gitea-a7b1ba0e3d49e699ce7d6e614bc8605aef0a2c9a.tar.gz gitea-a7b1ba0e3d49e699ce7d6e614bc8605aef0a2c9a.zip |
wiki history improvements (#7391)
* add history comments to detect page delete
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* fix too much history entries
- caused by --follow flag
- if files with same contents exists
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* style imprevements wiki
- history - wrap long author names
Signed-off-by: Michael Gnehr <michael@gnehr.de>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/wiki/revision.tmpl | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/templates/repo/wiki/revision.tmpl b/templates/repo/wiki/revision.tmpl index a64c386edc..c3a4f7636b 100644 --- a/templates/repo/wiki/revision.tmpl +++ b/templates/repo/wiki/revision.tmpl @@ -31,7 +31,7 @@ <div class="ui header eight wide column"> <a class="file-revisions-btn ui basic button" title="{{.i18n.Tr "repo.wiki.back_to_wiki"}}" href="{{.RepoLink}}/wiki/{{.PageURL}}" ><span>{{.revision}}</span> <i class="fa fa-fw fa-file-text-o"></i></a> {{$title}} - <div class="ui sub header"> + <div class="ui sub header wrap"> {{$timeSince := TimeSince .Author.When $.Lang}} {{.i18n.Tr "repo.wiki.last_commit_info" .Author.Name $timeSince | Safe}} </div> @@ -52,8 +52,9 @@ <table class="ui very basic striped fixed table single line" id="commits-table"> <thead> <tr> - <th class="eight wide">{{.i18n.Tr "repo.commits.author"}}</th> - <th class="four wide sha">SHA1</th> + <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> @@ -86,6 +87,15 @@ {{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}} |