summaryrefslogtreecommitdiffstats
path: root/templates/admin
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-05 17:39:29 -0500
committerUnknwon <u@gogs.io>2015-12-05 17:39:29 -0500
commitca8ce793d15b3991eb4766939e9a0a7cf086fa6f (patch)
tree9460c1e8b16d59d31834a4cda12f821a5372f112 /templates/admin
parent978dc00305f1af705ae8900977529bac6fa4c72b (diff)
downloadgitea-ca8ce793d15b3991eb4766939e9a0a7cf086fa6f.tar.gz
gitea-ca8ce793d15b3991eb4766939e9a0a7cf086fa6f.zip
#2063 Ability to delete repo from admin panel
Diffstat (limited to 'templates/admin')
-rw-r--r--templates/admin/repo/list.tmpl17
1 files changed, 17 insertions, 0 deletions
diff --git a/templates/admin/repo/list.tmpl b/templates/admin/repo/list.tmpl
index 84046c4ed4..932c0d8ac8 100644
--- a/templates/admin/repo/list.tmpl
+++ b/templates/admin/repo/list.tmpl
@@ -20,6 +20,7 @@
<th>{{.i18n.Tr "admin.repos.stars"}}</th>
<th>{{.i18n.Tr "admin.repos.issues"}}</th>
<th>{{.i18n.Tr "admin.users.created"}}</th>
+ <th>{{.i18n.Tr "admin.notices.op"}}</th>
</tr>
</thead>
<tbody>
@@ -33,6 +34,7 @@
<td>{{.NumStars}}</td>
<td>{{.NumIssues}}</td>
<td><span title="{{DateFmtLong .Created}}">{{DateFmtShort .Created}}</span></td>
+ <td><a class="delete-button" href="" data-url="{{$.Link}}/delete" data-id="{{.ID}}"><i class="trash icon text red"></i></a></td>
</tr>
{{end}}
</tbody>
@@ -66,4 +68,19 @@
</div>
</div>
</div>
+
+<div class="ui small basic delete modal">
+ <div class="ui icon header">
+ <i class="trash icon"></i>
+ {{.i18n.Tr "repo.settings.delete"}}
+ </div>
+ <div class="content">
+ <p>{{.i18n.Tr "repo.settings.delete_desc"}}</p>
+ <p>{{.i18n.Tr "repo.settings.delete_notices_2"}}</p>
+ <p>{{.i18n.Tr "repo.settings.delete_notices_fork_1"}}</p>
+ <p>{{.i18n.Tr "repo.settings.delete_notices_fork_2"}}</p>
+ <p>{{.i18n.Tr "repo.settings.delete_notices_fork_3"}}</p>
+ </div>
+ {{template "base/delete_modal_actions" .}}
+</div>
{{template "base/footer" .}} \ No newline at end of file