summaryrefslogtreecommitdiffstats
path: root/templates/admin/config.tmpl
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-02-24 23:59:17 -0500
committerUnknwon <u@gogs.io>2016-02-24 23:59:17 -0500
commitbaaf6046a1b0b81b91c76ecc259a13f9eb1c5cdb (patch)
tree2597d4ada58b2d555594dd2152224edc0cd36411 /templates/admin/config.tmpl
parent5418c2c5e45ba013938666f8c64c0a60a61a1398 (diff)
downloadgitea-baaf6046a1b0b81b91c76ecc259a13f9eb1c5cdb.tar.gz
gitea-baaf6046a1b0b81b91c76ecc259a13f9eb1c5cdb.zip
Minor fix for #2660
Diffstat (limited to 'templates/admin/config.tmpl')
-rw-r--r--templates/admin/config.tmpl27
1 files changed, 18 insertions, 9 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl
index c3af050077..8a9e93354e 100644
--- a/templates/admin/config.tmpl
+++ b/templates/admin/config.tmpl
@@ -1,5 +1,5 @@
{{template "base/head" .}}
-<div class="admin monitor">
+<div class="admin config">
<div class="ui container">
<div class="ui grid">
{{template "admin/navbar" .}}
@@ -110,14 +110,23 @@
<dt>{{.i18n.Tr "admin.config.mailer_enabled"}}</dt>
<dd><i class="fa fa{{if .MailerEnabled}}-check{{end}}-square-o"></i></dd>
{{if .MailerEnabled}}<dt>{{.i18n.Tr "admin.config.mailer_name"}}</dt>
- <dd>{{.Mailer.Name}}</dd>
- <dt>{{.i18n.Tr "admin.config.mailer_disable_helo"}}</dt>
- <dd><i class="fa fa{{if .Mailer.DisableHelo}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.mailer_host"}}</dt>
- <dd>{{.Mailer.Host}}</dd>
- <dt>{{.i18n.Tr "admin.config.mailer_user"}}</dt>
- <dd>{{.Mailer.User}}</dd><br>
- <a class="ui green button" tabindex="5" href="/admin/config/testmailer">{{.i18n.Tr "admin.config.mailer_test_email"}}</a>{{end}}
+ <dd>{{.Mailer.Name}}</dd>
+ <dt>{{.i18n.Tr "admin.config.mailer_disable_helo"}}</dt>
+ <dd><i class="fa fa{{if .Mailer.DisableHelo}}-check{{end}}-square-o"></i></dd>
+ <dt>{{.i18n.Tr "admin.config.mailer_host"}}</dt>
+ <dd>{{.Mailer.Host}}</dd>
+ <dt>{{.i18n.Tr "admin.config.mailer_user"}}</dt>
+ <dd>{{.Mailer.User}}</dd><br>
+ <form class="ui form" action="{{AppSubUrl}}/admin/config/test_mail" method="post">
+ {{.CsrfTokenHtml}}
+ <div class="inline field ui left">
+ <div class="ui input">
+ <input type="email" name="email" required>
+ </div>
+ </div>
+ <button class="ui green button" id="test-mail-btn">{{.i18n.Tr "admin.config.send_test_mail"}}</button>
+ </form>
+ {{end}}
</dl>
</div>