Skip to content

Commit fbae417

Browse files
authored
Merge branch 'master' into branch-view-delete-table-header
2 parents 49803f6 + bebc6a3 commit fbae417

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

options/locale/locale_en-US.ini

+1
Original file line numberDiff line numberDiff line change
@@ -1407,6 +1407,7 @@ branch.deleted_by = Deleted by %s
14071407
branch.restore_success = Branch '%s' has been restored.
14081408
branch.restore_failed = Failed to restore branch '%s'.
14091409
branch.protected_deletion_failed = Branch '%s' is protected. It cannot be deleted.
1410+
branch.restore = Restore Branch '%s'
14101411
14111412
topic.manage_topics = Manage Topics
14121413
topic.done = Done

templates/repo/branch/list.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@
8787
{{if .IsProtected}}
8888
<i class="octicon octicon-shield"></i>
8989
{{else if .IsDeleted}}
90-
<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>
90+
<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>
9191
{{else}}
92-
<a class="delete-branch-button" href data-url="{{$.Link}}/delete?name={{.Name | urlquery}}" data-name="{{.Name}}"><i class="trash icon text red"></i></a>
92+
<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>
9393
{{end}}
9494
</td>
9595
{{end}}

0 commit comments

Comments
 (0)