summaryrefslogtreecommitdiffstats
path: root/templates/repo/settings
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-03-03 23:24:22 -0500
committerUnknwon <u@gogs.io>2016-03-03 23:24:22 -0500
commit260723e2cce990d58c844b5ed164bd88f7ccb68f (patch)
tree064ec17e52cb6aef2938c616f27798ebd3c519ec /templates/repo/settings
parent1cbc5b49e3d6f072c9f78a4708c77b7f4f279108 (diff)
downloadgitea-260723e2cce990d58c844b5ed164bd88f7ccb68f.tar.gz
gitea-260723e2cce990d58c844b5ed164bd88f7ccb68f.zip
Minor fixes for #2745
Diffstat (limited to 'templates/repo/settings')
-rw-r--r--templates/repo/settings/options.tmpl10
1 files changed, 6 insertions, 4 deletions
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl
index 5868691fe5..da1b595ddc 100644
--- a/templates/repo/settings/options.tmpl
+++ b/templates/repo/settings/options.tmpl
@@ -168,11 +168,11 @@
<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>
+ <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>
+ <h5>{{.i18n.Tr "repo.settings.wiki_delete"}}</h5>
+ <p>{{.i18n.Tr "repo.settings.wiki_delete_desc"}}</p>
</div>
</div>
{{end}}
@@ -297,6 +297,7 @@
</div>
</div>
+{{if .Repository.EnableWiki}}
<div class="ui small modal" id="delete-wiki-modal">
<div class="header">
{{.i18n.Tr "repo.settings.wiki-delete"}}
@@ -304,7 +305,7 @@
<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}}
+ {{.i18n.Tr "repo.settings.wiki_delete_notices_1" .Repository.Name | Safe}}
</div>
<form class="ui form" action="{{.Link}}" method="post">
{{.CsrfTokenHtml}}
@@ -327,5 +328,6 @@
</form>
</div>
</div>
+{{end}}
{{template "base/footer" .}}