summaryrefslogtreecommitdiffstats
path: root/templates/repo/branch/list.tmpl
diff options
context:
space:
mode:
author6543 <24977596+6543@users.noreply.github.com>2019-07-26 02:01:25 +0200
committerzeripath <art27@cantab.net>2019-07-26 01:01:25 +0100
commitbebc6a3c77de159c7293464baad5b8cb5aee7700 (patch)
treeb4d42984583ff42900c9e631e4b57eb984396800 /templates/repo/branch/list.tmpl
parent1d7dd7d624bdb8e0a4f0dd26be4a215d6cdbb043 (diff)
downloadgitea-bebc6a3c77de159c7293464baad5b8cb5aee7700.tar.gz
gitea-bebc6a3c77de159c7293464baad5b8cb5aee7700.zip
[Branch View] icons to buttons (#7602)
* add restore-button info message * branch deltete undo icon to button * branch deltete icon to button
Diffstat (limited to 'templates/repo/branch/list.tmpl')
-rw-r--r--templates/repo/branch/list.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl
index 7963f8877f..d84298d843 100644
--- a/templates/repo/branch/list.tmpl
+++ b/templates/repo/branch/list.tmpl
@@ -97,9 +97,9 @@
{{if .IsProtected}}
<i class="octicon octicon-shield"></i>
{{else if .IsDeleted}}
- <a class="undo-button" href data-url="{{$.Link}}/restore?branch_id={{.DeletedBranch.ID | urlquery}}&name={{.DeletedBranch.Name | urlquery}}"><i class="octicon octicon-reply"></i></a>
+ <a class="ui basic jump button icon poping up undo-button" href data-url="{{$.Link}}/restore?branch_id={{.DeletedBranch.ID | urlquery}}&name={{.DeletedBranch.Name | urlquery}}" data-content="{{$.i18n.Tr "repo.branch.restore" (.Name | EscapePound)}}" data-variation="tiny inverted" data-position="top right"><i class="octicon octicon-reply text blue"></i></a>
{{else}}
- <a class="delete-branch-button" href data-url="{{$.Link}}/delete?name={{.Name | urlquery}}" data-name="{{.Name}}"><i class="trash icon text red"></i></a>
+ <a class="ui basic jump button icon poping up delete-branch-button" href data-url="{{$.Link}}/delete?name={{.Name | urlquery}}" data-content="{{$.i18n.Tr "repo.branch.delete" (.Name | EscapePound)}}" data-variation="tiny inverted" data-position="top right" data-name="{{.Name}}"><i class="trash icon text red"></i></a>
{{end}}
</td>
{{end}}