diff options
author | Harshit Bansal <harshitbansal2015@gmail.com> | 2019-01-07 01:38:25 +0530 |
---|---|---|
committer | techknowlogick <hello@techknowlogick.com> | 2019-01-06 15:08:25 -0500 |
commit | dd006db5a719b33aef7887faab48718e4b0f2786 (patch) | |
tree | 22160be00ff5f73b755dcbb494ce342638ce32d9 /templates/repo | |
parent | c42bde719ecf2dd8757453bed18e082d14c1d3fa (diff) | |
download | gitea-dd006db5a719b33aef7887faab48718e4b0f2786.tar.gz gitea-dd006db5a719b33aef7887faab48718e4b0f2786.zip |
Display branch name in delete branch confirmation modal. (#5654)
Fixes: #5630.
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/branch/list.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl index ce0558e92b..0242d1d107 100644 --- a/templates/repo/branch/list.tmpl +++ b/templates/repo/branch/list.tmpl @@ -52,7 +52,7 @@ {{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> {{else}} - <a class="delete-branch-button" href data-url="{{$.Link}}/delete?name={{.Name | urlquery}}" data-val="{{.Name}}"><i class="trash icon text red"></i></a> + <a class="delete-branch-button" href data-url="{{$.Link}}/delete?name={{.Name | urlquery}}" data-name="{{.Name}}"><i class="trash icon text red"></i></a> {{end}} </td> {{end}} @@ -69,7 +69,7 @@ <div class="ui small basic delete modal"> <div class="ui icon header"> <i class="trash icon"></i> - {{.i18n.Tr "repo.branch.delete_html"}} <span class="branch-name"></span> + {{.i18n.Tr "repo.branch.delete_html"}} <span class="name"></span> </div> <div class="content"> <p>{{.i18n.Tr "repo.branch.delete_desc" | Str2html}}</p> |