summaryrefslogtreecommitdiffstats
path: root/templates/repo/wiki
diff options
context:
space:
mode:
authorJosh Frye <joshfng@gmail.com>2016-03-03 17:06:50 -0500
committerJosh Frye <joshfng@gmail.com>2016-03-04 09:26:52 -0500
commit1ca171dbe9a06d9c269b90b442fda63e36a418a8 (patch)
treee36e705885918d60a34318c86b2fa31ada27a3e7 /templates/repo/wiki
parentf6759a731a063d5d2be8a932f8d1e1a784cc0528 (diff)
downloadgitea-1ca171dbe9a06d9c269b90b442fda63e36a418a8.tar.gz
gitea-1ca171dbe9a06d9c269b90b442fda63e36a418a8.zip
Add ability to delete single wiki pages.
Diffstat (limited to 'templates/repo/wiki')
-rw-r--r--templates/repo/wiki/view.tmpl13
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl
index c8189285aa..31ffd4d094 100644
--- a/templates/repo/wiki/view.tmpl
+++ b/templates/repo/wiki/view.tmpl
@@ -50,6 +50,7 @@
<div class="ui right">
<a class="ui small button" href="{{.RepoLink}}/wiki/{{.PageURL}}/_edit">{{.i18n.Tr "repo.wiki.edit_page_button"}}</a>
<a class="ui green small button" href="{{.RepoLink}}/wiki/_new">{{.i18n.Tr "repo.wiki.new_page_button"}}</a>
+ <a class="ui red small button delete-button" href="" data-url="{{.RepoLink}}/wiki/{{.PageURL}}/" data-id="{{.PageURL}}">{{.i18n.Tr "repo.wiki.delete_page_button"}}</a>
</div>
{{end}}
<div class="ui sub header">
@@ -62,4 +63,16 @@
</div>
</div>
</div>
+
+<div class="ui small basic delete modal">
+ <div class="ui icon header">
+ <i class="trash icon"></i>
+ {{.i18n.Tr "repo.wiki.delete_page_button"}}
+ </div>
+ <div class="content">
+ <p>{{.i18n.Tr "repo.wiki.delete_page_notice_1" .title | Safe}}</p>
+ </div>
+ {{template "base/delete_modal_actions" .}}
+</div>
+
{{template "base/footer" .}}