1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Add extra user information when migrating release (#8331)

* add extra user information when migrating release

* add migrations

* fix tests
This commit is contained in:
Lunny Xiao
2019-10-05 19:09:27 +08:00
committed by Lauris BH
parent fb7c23f911
commit bd41a04a56
8 changed files with 55 additions and 12 deletions

View File

@@ -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>