diff options
author | Lanre Adelowo <yo@lanre.wtf> | 2020-10-22 01:55:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-21 20:55:25 -0400 |
commit | e9186362839749a83f4fcff2b01fc39de1ef4f45 (patch) | |
tree | 10c4334527968f46d06d572e0058d696e196bcad /templates | |
parent | 819901b3e9c187aed1d29f7b58599ed61075781a (diff) | |
download | gitea-e9186362839749a83f4fcff2b01fc39de1ef4f45.tar.gz gitea-e9186362839749a83f4fcff2b01fc39de1ef4f45.zip |
Enhance release list (#6025)
* show author for releases created outside Gitea UI.
Also show the number of commits behind the default branch for tags created outside the UI
don't show the tag date again for tags pushed to the repo. Since it is already on the sidebar and looks like duplication
* add migration for already existing tags
* update as per review
* fix build
* add space
* fix import statments
* Update models/migrations/v113.go
Co-Authored-By: zeripath <art27@cantab.net>
* Update models/migrations/v114.go
Co-authored-by: 6543 <6543@obermui.de>
* Update services/release/release.go
Co-authored-by: 6543 <6543@obermui.de>
* impruve
* remove dependency on models package
* Close the gitrepos in a defer to ensure that they are closed.
* gofmt
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/release/list.tmpl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl index bba6f91e7b..6ab2e4283f 100644 --- a/templates/repo/release/list.tmpl +++ b/templates/repo/release/list.tmpl @@ -40,6 +40,15 @@ <h4> <a href="{{$.RepoLink}}/src/tag/{{.TagName | EscapePound}}" rel="nofollow"><i class="tag icon"></i> {{.TagName}}</a> </h4> + <p class="text grey"> + {{ if gt .Publisher.ID 0 }} + <span class="author"> + <img class="img-10" src="{{.Publisher.RelAvatarLink}}"> + <a href="{{AppSubUrl}}/{{.Publisher.Name}}">{{.Publisher.Name}}</a> + </span> + {{ end }} + <span class="ahead"><a href="{{$.RepoLink}}/compare/{{.TagName | EscapePound}}...{{.Target}}">{{$.i18n.Tr "repo.release.ahead.commits" .NumCommitsBehind | Str2html}}</a> {{$.i18n.Tr "repo.release.ahead.target" $.DefaultBranch}}</span> + </p> <div class="download"> {{if $.Permission.CanRead $.UnitTypeCode}} <a href="{{$.RepoLink}}/src/commit/{{.Sha1}}" rel="nofollow"><i class="code icon"></i> {{ShortSha .Sha1}}</a> |