summaryrefslogtreecommitdiffstats
path: root/templates/repo/release/list.tmpl
diff options
context:
space:
mode:
authorJohn Olheiser <john.olheiser@gmail.com>2020-06-05 13:44:54 -0500
committerGitHub <noreply@github.com>2020-06-05 14:44:54 -0400
commitac0741801101d56b6bccd1089ffedf2b3480758b (patch)
tree1d4b05082769fd64c28cdf73e4bf2206ddae1624 /templates/repo/release/list.tmpl
parent48f24c7b3257f834c38f3f81c2b39a6dd2f9ff42 (diff)
downloadgitea-ac0741801101d56b6bccd1089ffedf2b3480758b.tar.gz
gitea-ac0741801101d56b6bccd1089ffedf2b3480758b.zip
Add compare link to releases (#11752)
Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'templates/repo/release/list.tmpl')
-rw-r--r--templates/repo/release/list.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl
index d0b160a1c0..baef2c1cee 100644
--- a/templates/repo/release/list.tmpl
+++ b/templates/repo/release/list.tmpl
@@ -64,8 +64,8 @@
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>
+ {{if .CreatedUnix}}<span class="time">{{TimeSinceUnix .CreatedUnix $.Lang}}</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" .Target}}</span>
</p>
<div class="markdown desc">
{{Str2html .Note}}