diff options
author | Josh Frye <joshfng@gmail.com> | 2016-03-03 15:38:25 -0500 |
---|---|---|
committer | Josh Frye <joshfng@gmail.com> | 2016-03-03 16:12:48 -0500 |
commit | f3358f5927c7947c90b921371e589cb73c70e1cc (patch) | |
tree | 4e23d990586b5f91f9f3e46ad6742d755b589c2c /templates/repo/settings/options.tmpl | |
parent | f946040fa94a3acb3b1f54873e6f95766595829c (diff) | |
download | gitea-f3358f5927c7947c90b921371e589cb73c70e1cc.tar.gz gitea-f3358f5927c7947c90b921371e589cb73c70e1cc.zip |
Repo setting to delete and disable wiki
Diffstat (limited to 'templates/repo/settings/options.tmpl')
-rw-r--r-- | templates/repo/settings/options.tmpl | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index 977d841cf5..5868691fe5 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -163,6 +163,20 @@ </div> </div> + {{if .Repository.EnableWiki}} + <div class="ui divider"></div> + + <div class="item"> + <div class="ui right"> + <button class="ui basic red show-modal button" data-modal="#delete-wiki-modal">{{.i18n.Tr "repo.settings.wiki-delete"}}</button> + </div> + <div> + <h5>{{.i18n.Tr "repo.settings.wiki-delete"}}</h5> + <p>{{.i18n.Tr "repo.settings.wiki-delete_desc"}}</p> + </div> + </div> + {{end}} + <div class="ui divider"></div> <div class="item"> @@ -282,4 +296,36 @@ </form> </div> </div> + +<div class="ui small modal" id="delete-wiki-modal"> + <div class="header"> + {{.i18n.Tr "repo.settings.wiki-delete"}} + </div> + <div class="content"> + <div class="ui warning message text left"> + {{.i18n.Tr "repo.settings.delete_notices_1" | Safe}}<br> + {{.i18n.Tr "repo.settings.wiki-delete_notices_1" .Repository.Name | Safe}} + </div> + <form class="ui form" action="{{.Link}}" method="post"> + {{.CsrfTokenHtml}} + <input type="hidden" name="action" value="delete-wiki"> + <div class="field"> + <label> + {{.i18n.Tr "repo.settings.transfer_form_title"}} + <span class="text red">{{.Repository.Name}}</span> + </label> + </div> + <div class="required field"> + <label for="repo_name">{{.i18n.Tr "repo.repo_name"}}</label> + <input id="repo_name" name="repo_name" required> + </div> + + <div class="text right actions"> + <div class="ui cancel button">{{.i18n.Tr "settings.cancel"}}</div> + <button class="ui red button">{{.i18n.Tr "repo.settings.confirm_delete"}}</button> + </div> + </form> + </div> +</div> + {{template "base/footer" .}} |