diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin/repo/list.tmpl | 4 | ||||
-rw-r--r-- | templates/repo/branch/list.tmpl | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/admin/repo/list.tmpl b/templates/admin/repo/list.tmpl index f706eaa1c8..2054b32178 100644 --- a/templates/admin/repo/list.tmpl +++ b/templates/admin/repo/list.tmpl @@ -39,7 +39,7 @@ <td>{{.NumIssues}}</td> <td>{{SizeFmt .Size}}</td> <td><span title="{{.CreatedUnix.FormatLong}}">{{.CreatedUnix.FormatShort}}</span></td> - <td><a class="delete-button" href="" data-url="{{$.Link}}/delete?page={{$.Page.Current}}" data-id="{{.ID}}" data-repo-name="{{.Name}}"><i class="trash icon text red"></i></a></td> + <td><a class="delete-button" href="" data-url="{{$.Link}}/delete?page={{$.Page.Current}}" data-id="{{.ID}}" data-name="{{.Name}}"><i class="trash icon text red"></i></a></td> </tr> {{end}} </tbody> @@ -57,7 +57,7 @@ </div> <div class="content"> <p>{{.i18n.Tr "repo.settings.delete_desc"}}</p> - {{.i18n.Tr "repo.settings.delete_notices_2" `<span class="repo-name"></span>` | Safe}}<br> + {{.i18n.Tr "repo.settings.delete_notices_2" `<span class="name"></span>` | Safe}}<br> {{.i18n.Tr "repo.settings.delete_notices_fork_1"}}<br> </div> {{template "base/delete_modal_actions" .}} 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> |