mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 14:27:50 +01:00
Fix Delete repository message (#3260)
This commit is contained in:
parent
d29aa76777
commit
bec09378f9
@ -1683,7 +1683,10 @@ function showDeletePopup() {
|
|||||||
filter += "#" + $this.attr("id")
|
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,
|
closable: false,
|
||||||
onApprove: function() {
|
onApprove: function() {
|
||||||
if ($this.data('type') == "form") {
|
if ($this.data('type') == "form") {
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
<td>{{.NumIssues}}</td>
|
<td>{{.NumIssues}}</td>
|
||||||
<td>{{SizeFmt .Size}}</td>
|
<td>{{SizeFmt .Size}}</td>
|
||||||
<td><span title="{{.CreatedUnix.FormatLong}}">{{.CreatedUnix.FormatShort}}</span></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}}"><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-repo-name="{{.Name}}"><i class="trash icon text red"></i></a></td>
|
||||||
</tr>
|
</tr>
|
||||||
{{end}}
|
{{end}}
|
||||||
</tbody>
|
</tbody>
|
||||||
@ -55,7 +55,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.i18n.Tr "repo.settings.delete_desc"}}</p>
|
<p>{{.i18n.Tr "repo.settings.delete_desc"}}</p>
|
||||||
{{.i18n.Tr "repo.settings.delete_notices_2"}}<br>
|
{{.i18n.Tr "repo.settings.delete_notices_2" `<span class="repo-name"></span>` | Safe}}<br>
|
||||||
{{.i18n.Tr "repo.settings.delete_notices_fork_1"}}<br>
|
{{.i18n.Tr "repo.settings.delete_notices_fork_1"}}<br>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/delete_modal_actions" .}}
|
{{template "base/delete_modal_actions" .}}
|
||||||
|
Loading…
Reference in New Issue
Block a user