{{.i18n.Tr "repo.settings.delete_desc"}}
- {{.i18n.Tr "repo.settings.delete_notices_2"}}+ {{.i18n.Tr "repo.settings.delete_notices_2" `` | Safe}}
{{.i18n.Tr "repo.settings.delete_notices_fork_1"}}
diff --git a/public/js/index.js b/public/js/index.js index 160be5b684..9b67e59264 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1683,7 +1683,10 @@ function showDeletePopup() { filter += "#" + $this.attr("id") } - $('.delete.modal' + filter).modal({ + var dialog = $('.delete.modal' + filter); + dialog.find('.repo-name').text($this.data('repo-name')); + + dialog.modal({ closable: false, onApprove: function() { if ($this.data('type') == "form") { diff --git a/templates/admin/repo/list.tmpl b/templates/admin/repo/list.tmpl index 470be359eb..86d6b80426 100644 --- a/templates/admin/repo/list.tmpl +++ b/templates/admin/repo/list.tmpl @@ -37,7 +37,7 @@
{{.i18n.Tr "repo.settings.delete_desc"}}
- {{.i18n.Tr "repo.settings.delete_notices_2"}}