From d4e5518917b25755fec8ce0952be39582882cc1b Mon Sep 17 00:00:00 2001 From: "saqlain.kadiri" Date: Sat, 23 Oct 2021 21:39:11 +0530 Subject: [PATCH] Add copy commit SHA1 button in commits list --- options/locale/locale_en-US.ini | 3 +++ templates/repo/commits_list.tmpl | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 31d5bf08c6346..aa237286e5fc8 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -1057,6 +1057,9 @@ commits.search.tooltip = You can prefix keywords with "author:", "committer:", " commits.find = Search commits.search_all = All Branches commits.author = Author +commits.copy_sha_text = Copy +commits.copy_sha_success = SHA1 has been copied +commits.copy_sha_error = Use ⌘C or Ctrl-C to copy commits.message = Message commits.date = Date commits.older = Older diff --git a/templates/repo/commits_list.tmpl b/templates/repo/commits_list.tmpl index 5282430ec796f..e497db58f5d25 100644 --- a/templates/repo/commits_list.tmpl +++ b/templates/repo/commits_list.tmpl @@ -47,6 +47,16 @@ {{end}} {{ShortSha .ID.String}} + + {{svg "octicon-paste"}} + {{if .Signature}} {{template "repo/shabox_badge" dict "root" $ "verification" .Verification}} {{end}}