From 9baf24aaf673f82fd23f66c8f7acc1047ece3fb0 Mon Sep 17 00:00:00 2001 From: Steve Groesz Date: Mon, 12 Jun 2023 18:50:21 -0500 Subject: [PATCH 1/2] Add download links to commits_list.tmpl --- templates/repo/commits_list.tmpl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/repo/commits_list.tmpl b/templates/repo/commits_list.tmpl index 36333c554079c..0daa527e981ea 100644 --- a/templates/repo/commits_list.tmpl +++ b/templates/repo/commits_list.tmpl @@ -3,8 +3,8 @@ {{.locale.Tr "repo.commits.author"}} - SHA1 - {{.locale.Tr "repo.commits.message"}} + SHA1 + {{.locale.Tr "repo.commits.message"}} {{.locale.Tr "repo.commits.date"}} @@ -54,6 +54,9 @@ {{end}} {{if $.Reponame}} + [.zip] + | + [.tar.gz] {{else}} {{end}} From 08144e03a2caac019dafb2606923f3aadaccb8a9 Mon Sep 17 00:00:00 2001 From: Steve Groesz Date: Mon, 12 Jun 2023 19:19:51 -0500 Subject: [PATCH 2/2] Update commits_list.tmpl Alternative .zip download link only, using an icon instead of text to provide a link to download a specific commit. --- templates/repo/commits_list.tmpl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/templates/repo/commits_list.tmpl b/templates/repo/commits_list.tmpl index 0daa527e981ea..7da42c3b38b9d 100644 --- a/templates/repo/commits_list.tmpl +++ b/templates/repo/commits_list.tmpl @@ -3,8 +3,8 @@ {{.locale.Tr "repo.commits.author"}} - SHA1 - {{.locale.Tr "repo.commits.message"}} + SHA1 + {{.locale.Tr "repo.commits.message"}} {{.locale.Tr "repo.commits.date"}} @@ -54,9 +54,7 @@ {{end}} {{if $.Reponame}} - [.zip] - | - [.tar.gz] + {{svg "octicon-file-zip" 16 "gt-mr-3"}} {{else}} {{end}}