Merge pull request #1694 from sapk/fix-admin-configuration-new-ui
Fix admin configuration new ui
This commit is contained in:
commit
2b1e955f91
|
@ -1,18 +1,14 @@
|
||||||
{{template "ng/base/head" .}}
|
{{template "base/head" .}}
|
||||||
{{template "ng/base/header" .}}
|
<div class="admin monitor">
|
||||||
<div id="admin-wrapper">
|
<div class="ui container">
|
||||||
<div id="setting-wrapper" class="main-wrapper">
|
<div class="ui grid">
|
||||||
<div id="admin-setting" class="container clear">
|
{{template "admin/navbar" .}}
|
||||||
{{template "admin/nav" .}}
|
<div class="twelve wide column content">
|
||||||
<div class="grid-4-5 left">
|
{{template "base/alert" .}}
|
||||||
<div class="setting-content">
|
<h4 class="ui top attached header">
|
||||||
{{template "ng/base/alert" .}}
|
{{.i18n.Tr "admin.config.server_config"}}
|
||||||
<div id="setting-content">
|
</h4>
|
||||||
<div class="panel panel-radius">
|
<div class="ui attached table segment">
|
||||||
<div class="panel-header">
|
|
||||||
<strong>{{.i18n.Tr "admin.config.server_config"}}</strong>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<dl class="dl-horizontal admin-dl-horizontal">
|
<dl class="dl-horizontal admin-dl-horizontal">
|
||||||
<dt>{{.i18n.Tr "admin.config.app_name"}}</dt>
|
<dt>{{.i18n.Tr "admin.config.app_name"}}</dt>
|
||||||
<dd>{{AppName}}</dd>
|
<dd>{{AppName}}</dd>
|
||||||
|
@ -44,13 +40,11 @@
|
||||||
<dd>{{.ReverseProxyAuthUser}}</dd>
|
<dd>{{.ReverseProxyAuthUser}}</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<br>
|
<h4 class="ui top attached header">
|
||||||
<div class="panel panel-radius">
|
{{.i18n.Tr "admin.config.db_config"}}
|
||||||
<div class="panel-header">
|
</h4>
|
||||||
<strong>{{.i18n.Tr "admin.config.db_config"}}</strong>
|
<div class="ui attached table segment">
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<dl class="dl-horizontal admin-dl-horizontal">
|
<dl class="dl-horizontal admin-dl-horizontal">
|
||||||
<dt>{{.i18n.Tr "admin.config.db_type"}}</dt>
|
<dt>{{.i18n.Tr "admin.config.db_type"}}</dt>
|
||||||
<dd>{{.DbCfg.Type}}</dd>
|
<dd>{{.DbCfg.Type}}</dd>
|
||||||
|
@ -66,13 +60,11 @@
|
||||||
<dd>{{.DbCfg.Path}} {{.i18n.Tr "admin.config.db_path_helper"}}</dd>
|
<dd>{{.DbCfg.Path}} {{.i18n.Tr "admin.config.db_path_helper"}}</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<br>
|
<h4 class="ui top attached header">
|
||||||
<div class="panel panel-radius">
|
{{.i18n.Tr "admin.config.service_config"}}
|
||||||
<div class="panel-header">
|
</h4>
|
||||||
<strong>{{.i18n.Tr "admin.config.service_config"}}</strong>
|
<div class="ui attached table segment">
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<dl class="dl-horizontal admin-dl-horizontal">
|
<dl class="dl-horizontal admin-dl-horizontal">
|
||||||
<dt>{{.i18n.Tr "admin.config.register_email_confirm"}}</dt>
|
<dt>{{.i18n.Tr "admin.config.register_email_confirm"}}</dt>
|
||||||
<dd><i class="fa fa{{if .Service.RegisterEmailConfirm}}-check{{end}}-square-o"></i></dd>
|
<dd><i class="fa fa{{if .Service.RegisterEmailConfirm}}-check{{end}}-square-o"></i></dd>
|
||||||
|
@ -97,13 +89,11 @@
|
||||||
<dd>{{.Service.ResetPwdCodeLives}} {{.i18n.Tr "tool.raw_minutes"}}</dd>
|
<dd>{{.Service.ResetPwdCodeLives}} {{.i18n.Tr "tool.raw_minutes"}}</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<br>
|
<h4 class="ui top attached header">
|
||||||
<div class="panel panel-radius">
|
{{.i18n.Tr "admin.config.webhook_config"}}
|
||||||
<div class="panel-header">
|
</h4>
|
||||||
<strong>{{.i18n.Tr "admin.config.webhook_config"}}</strong>
|
<div class="ui attached table segment">
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<dl class="dl-horizontal admin-dl-horizontal">
|
<dl class="dl-horizontal admin-dl-horizontal">
|
||||||
<dt>{{.i18n.Tr "admin.config.queue_length"}}</dt>
|
<dt>{{.i18n.Tr "admin.config.queue_length"}}</dt>
|
||||||
<dd>{{.Webhook.QueueLength}}</dd>
|
<dd>{{.Webhook.QueueLength}}</dd>
|
||||||
|
@ -113,13 +103,11 @@
|
||||||
<dd><i class="fa fa{{if .Webhook.SkipTLSVerify}}-check{{end}}-square-o"></i></dd>
|
<dd><i class="fa fa{{if .Webhook.SkipTLSVerify}}-check{{end}}-square-o"></i></dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<br>
|
<h4 class="ui top attached header">
|
||||||
<div class="panel panel-radius">
|
{{.i18n.Tr "admin.config.mailer_config"}}
|
||||||
<div class="panel-header">
|
</h4>
|
||||||
<strong>{{.i18n.Tr "admin.config.mailer_config"}}</strong>
|
<div class="ui attached table segment">
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<dl class="dl-horizontal admin-dl-horizontal">
|
<dl class="dl-horizontal admin-dl-horizontal">
|
||||||
<dt>{{.i18n.Tr "admin.config.mailer_enabled"}}</dt>
|
<dt>{{.i18n.Tr "admin.config.mailer_enabled"}}</dt>
|
||||||
<dd><i class="fa fa{{if .MailerEnabled}}-check{{end}}-square-o"></i></dd>
|
<dd><i class="fa fa{{if .MailerEnabled}}-check{{end}}-square-o"></i></dd>
|
||||||
|
@ -133,13 +121,11 @@
|
||||||
<dd>{{.Mailer.User}}</dd>{{end}}
|
<dd>{{.Mailer.User}}</dd>{{end}}
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<br>
|
<h4 class="ui top attached header">
|
||||||
<div class="panel panel-radius">
|
{{.i18n.Tr "admin.config.cache_config"}}
|
||||||
<div class="panel-header">
|
</h4>
|
||||||
<strong>{{.i18n.Tr "admin.config.cache_config"}}</strong>
|
<div class="ui attached table segment">
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<dl class="dl-horizontal admin-dl-horizontal">
|
<dl class="dl-horizontal admin-dl-horizontal">
|
||||||
<dt>{{.i18n.Tr "admin.config.cache_adapter"}}</dt>
|
<dt>{{.i18n.Tr "admin.config.cache_adapter"}}</dt>
|
||||||
<dd>{{.CacheAdapter}}</dd>
|
<dd>{{.CacheAdapter}}</dd>
|
||||||
|
@ -149,13 +135,11 @@
|
||||||
<dd><pre>{{.CacheConn}}</pre></dd>
|
<dd><pre>{{.CacheConn}}</pre></dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<br>
|
<h4 class="ui top attached header">
|
||||||
<div class="panel panel-radius">
|
{{.i18n.Tr "admin.config.session_config"}}
|
||||||
<div class="panel-header">
|
</h4>
|
||||||
<strong>{{.i18n.Tr "admin.config.session_config"}}</strong>
|
<div class="ui attached table segment">
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<dl class="dl-horizontal admin-dl-horizontal">
|
<dl class="dl-horizontal admin-dl-horizontal">
|
||||||
<dt>{{.i18n.Tr "admin.config.session_provider"}}</dt>
|
<dt>{{.i18n.Tr "admin.config.session_provider"}}</dt>
|
||||||
<dd>{{.SessionConfig.Provider}}</dd>
|
<dd>{{.SessionConfig.Provider}}</dd>
|
||||||
|
@ -173,13 +157,11 @@
|
||||||
<dd>{{.SessionConfig.CookieLifeTime}} {{.i18n.Tr "tool.raw_seconds"}}</dd>
|
<dd>{{.SessionConfig.CookieLifeTime}} {{.i18n.Tr "tool.raw_seconds"}}</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<br>
|
<h4 class="ui top attached header">
|
||||||
<div class="panel panel-radius">
|
{{.i18n.Tr "admin.config.picture_config"}}
|
||||||
<div class="panel-header">
|
</h4>
|
||||||
<strong>{{.i18n.Tr "admin.config.picture_config"}}</strong>
|
<div class="ui attached table segment">
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<dl class="dl-horizontal admin-dl-horizontal">
|
<dl class="dl-horizontal admin-dl-horizontal">
|
||||||
<dt>{{.i18n.Tr "admin.config.picture_service"}}</dt>
|
<dt>{{.i18n.Tr "admin.config.picture_service"}}</dt>
|
||||||
<dd>{{.PictureService}}</dd>
|
<dd>{{.PictureService}}</dd>
|
||||||
|
@ -187,13 +169,11 @@
|
||||||
<dd><i class="fa fa{{if .DisableGravatar}}-check{{end}}-square-o"></i></dd>
|
<dd><i class="fa fa{{if .DisableGravatar}}-check{{end}}-square-o"></i></dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<br>
|
<h4 class="ui top attached header">
|
||||||
<div class="panel panel-radius">
|
{{.i18n.Tr "admin.config.log_config"}}
|
||||||
<div class="panel-header">
|
</h4>
|
||||||
<strong>{{.i18n.Tr "admin.config.log_config"}}</strong>
|
<div class="ui attached table segment">
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<dl class="dl-horizontal admin-dl-horizontal">
|
<dl class="dl-horizontal admin-dl-horizontal">
|
||||||
{{range .Loggers}}
|
{{range .Loggers}}
|
||||||
<dt>{{$.i18n.Tr "admin.config.log_mode"}}</dt>
|
<dt>{{$.i18n.Tr "admin.config.log_mode"}}</dt>
|
||||||
|
@ -206,8 +186,5 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{{template "ng/base/footer" .}}
|
{{template "base/footer" .}}
|
Loading…
Reference in New Issue