aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorYarden Shoham <git@yardenshoham.com>2023-05-09 02:59:59 +0300
committerGitHub <noreply@github.com>2023-05-08 23:59:59 +0000
commit46e97986f5ad3385bf6d731f19974fceac39ea20 (patch)
tree6c1ef2f78c9ca54ea73679351ee98e4695098a75 /templates/repo
parentdef4956122ea2364f247712b13856383ee496add (diff)
downloadgitea-46e97986f5ad3385bf6d731f19974fceac39ea20.tar.gz
gitea-46e97986f5ad3385bf6d731f19974fceac39ea20.zip
Attach a tooltip to the action control button (#24595)
The first time I saw the big red X button I thought something failed but apparently, it was just a "Cancel" button # Before ![image](https://user-images.githubusercontent.com/20454870/236889564-3729926a-cfb3-4e47-a8ed-51389c4f193f.png) ![image](https://user-images.githubusercontent.com/20454870/236886259-b0ab0d55-28c3-41f5-8709-8cfc6819423f.png) ![image](https://user-images.githubusercontent.com/20454870/236886081-b7a97f01-6108-4c18-9adb-11cbafd8c19c.png) # After ![image](https://user-images.githubusercontent.com/20454870/236889690-d1dfd74d-ad7d-4571-b712-69f0dc630c6e.png) ![image](https://user-images.githubusercontent.com/20454870/236885823-0734216d-b450-4a43-bfe3-e88525a8822a.png) ![image](https://user-images.githubusercontent.com/20454870/236903320-3b415619-8aff-4e5d-994e-6faa671990db.png) --------- Signed-off-by: Yarden Shoham <git@yardenshoham.com> Co-authored-by: Giteabot <teabot@gitea.io> Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/actions/view.tmpl10
1 files changed, 9 insertions, 1 deletions
diff --git a/templates/repo/actions/view.tmpl b/templates/repo/actions/view.tmpl
index 0c04671153..85e6f736d8 100644
--- a/templates/repo/actions/view.tmpl
+++ b/templates/repo/actions/view.tmpl
@@ -2,7 +2,15 @@
<div class="page-content repository">
{{template "repo/header" .}}
- <div id="repo-action-view" data-run-index="{{.RunIndex}}" data-job-index="{{.JobIndex}}" data-actions-url="{{.ActionsURL}}"></div>
+ <div id="repo-action-view"
+ data-run-index="{{.RunIndex}}"
+ data-job-index="{{.JobIndex}}"
+ data-actions-url="{{.ActionsURL}}"
+ data-locale-approve="{{.locale.Tr "repo.diff.review.approve"}}"
+ data-locale-cancel="{{.locale.Tr "cancel"}}"
+ data-locale-rerun="{{.locale.Tr "rerun"}}"
+ >
+ </div>
</div>
{{template "base/footer" .}}