diff options
author | Unknwon <u@gogs.io> | 2016-03-04 13:14:37 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-03-04 13:14:37 -0500 |
commit | 4d5911dbcfc4aca28987e61dc46f0129010b6d29 (patch) | |
tree | 9f9fa240af57e270d0fa490d68a3d75ef3c9d1c8 /templates | |
parent | d57a2b908ab0954568b0ac5f1030c454a944bee1 (diff) | |
parent | 2f228ddf31b76bc424635f262f34e4b01226f2ef (diff) | |
download | gitea-4d5911dbcfc4aca28987e61dc46f0129010b6d29.tar.gz gitea-4d5911dbcfc4aca28987e61dc46f0129010b6d29.zip |
Merge pull request #2746 from joshfng/feature-delete-wiki-pages
Add ability to delete single wiki pages.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/wiki/view.tmpl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl index c8189285aa..b96931fab1 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}}/delete" 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" .}} |