diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-10-05 19:09:27 +0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-10-05 14:09:27 +0300 |
commit | bd41a04a5613a2e017b458351bea0f02b767b893 (patch) | |
tree | d13e42c1f9664e09ae432250caaeca78df70ee72 /templates | |
parent | fb7c23f911bebcb72f170f3d8bc8343546805f3b (diff) | |
download | gitea-bd41a04a5613a2e017b458351bea0f02b767b893.tar.gz gitea-bd41a04a5613a2e017b458351bea0f02b767b893.zip |
Add extra user information when migrating release (#8331)
* add extra user information when migrating release
* add migrations
* fix tests
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/release/list.tmpl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl index c57a180873..777d3a2b05 100644 --- a/templates/repo/release/list.tmpl +++ b/templates/repo/release/list.tmpl @@ -54,8 +54,15 @@ </h3> <p class="text grey"> <span class="author"> + {{if .OriginalAuthor}} + <i class="fa fa-github" aria-hidden="true"></i> + {{.OriginalAuthor}} + {{else if .Publisher}} <img class="img-10" src="{{.Publisher.RelAvatarLink}}"> <a href="{{AppSubUrl}}/{{.Publisher.Name}}">{{.Publisher.Name}}</a> + {{else}} + Ghost + {{end}} </span> {{if .CreatedUnix}}<span class="time">{{TimeSinceUnix .CreatedUnix $.Lang}}</span>{{end}} <span class="ahead">{{$.i18n.Tr "repo.release.ahead" .NumCommitsBehind .Target | Str2html}}</span> |