Fix admin configuration new ui

This commit is contained in:
Antoine GIRARD 2015-11-21 12:57:28 +01:00
parent 6a6a7512c2
commit 63cdee84d1

View File

@ -1,213 +1,190 @@
{{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"> <dl class="dl-horizontal admin-dl-horizontal">
<strong>{{.i18n.Tr "admin.config.server_config"}}</strong> <dt>{{.i18n.Tr "admin.config.app_name"}}</dt>
</div> <dd>{{AppName}}</dd>
<div class="panel-body"> <dt>{{.i18n.Tr "admin.config.app_ver"}}</dt>
<dl class="dl-horizontal admin-dl-horizontal"> <dd>{{AppVer}}</dd>
<dt>{{.i18n.Tr "admin.config.app_name"}}</dt> <dt>{{.i18n.Tr "admin.config.app_url"}}</dt>
<dd>{{AppName}}</dd> <dd>{{.AppUrl}}</dd>
<dt>{{.i18n.Tr "admin.config.app_ver"}}</dt> <dt>{{.i18n.Tr "admin.config.domain"}}</dt>
<dd>{{AppVer}}</dd> <dd>{{.Domain}}</dd>
<dt>{{.i18n.Tr "admin.config.app_url"}}</dt> <dt>{{.i18n.Tr "admin.config.offline_mode"}}</dt>
<dd>{{.AppUrl}}</dd> <dd><i class="fa fa{{if .OfflineMode}}-check{{end}}-square-o"></i></dd>
<dt>{{.i18n.Tr "admin.config.domain"}}</dt> <dt>{{.i18n.Tr "admin.config.disable_router_log"}}</dt>
<dd>{{.Domain}}</dd> <dd><i class="fa fa{{if .DisableRouterLog}}-check{{end}}-square-o"></i></dd>
<dt>{{.i18n.Tr "admin.config.offline_mode"}}</dt> <hr/>
<dd><i class="fa fa{{if .OfflineMode}}-check{{end}}-square-o"></i></dd> <dt>{{.i18n.Tr "admin.config.run_user"}}</dt>
<dt>{{.i18n.Tr "admin.config.disable_router_log"}}</dt> <dd>{{.RunUser}}</dd>
<dd><i class="fa fa{{if .DisableRouterLog}}-check{{end}}-square-o"></i></dd> <dt>{{.i18n.Tr "admin.config.run_mode"}}</dt>
<hr/> <dd>{{.RunMode}}</dd>
<dt>{{.i18n.Tr "admin.config.run_user"}}</dt> <hr/>
<dd>{{.RunUser}}</dd> <dt>{{.i18n.Tr "admin.config.repo_root_path"}}</dt>
<dt>{{.i18n.Tr "admin.config.run_mode"}}</dt> <dd>{{.RepoRootPath}}</dd>
<dd>{{.RunMode}}</dd> <dt>{{.i18n.Tr "admin.config.static_file_root_path"}}</dt>
<hr/> <dd>{{.StaticRootPath}}</dd>
<dt>{{.i18n.Tr "admin.config.repo_root_path"}}</dt> <dt>{{.i18n.Tr "admin.config.log_file_root_path"}}</dt>
<dd>{{.RepoRootPath}}</dd> <dd>{{.LogRootPath}}</dd>
<dt>{{.i18n.Tr "admin.config.static_file_root_path"}}</dt> <dt>{{.i18n.Tr "admin.config.script_type"}}</dt>
<dd>{{.StaticRootPath}}</dd> <dd>{{.ScriptType}}</dd>
<dt>{{.i18n.Tr "admin.config.log_file_root_path"}}</dt> <dt>{{.i18n.Tr "admin.config.reverse_auth_user"}}</dt>
<dd>{{.LogRootPath}}</dd> <dd>{{.ReverseProxyAuthUser}}</dd>
<dt>{{.i18n.Tr "admin.config.script_type"}}</dt> </dl>
<dd>{{.ScriptType}}</dd> </div>
<dt>{{.i18n.Tr "admin.config.reverse_auth_user"}}</dt>
<dd>{{.ReverseProxyAuthUser}}</dd> <h4 class="ui top attached header">
</dl> {{.i18n.Tr "admin.config.db_config"}}
</div> </h4>
</div> <div class="ui attached table segment">
<br> <dl class="dl-horizontal admin-dl-horizontal">
<div class="panel panel-radius"> <dt>{{.i18n.Tr "admin.config.db_type"}}</dt>
<div class="panel-header"> <dd>{{.DbCfg.Type}}</dd>
<strong>{{.i18n.Tr "admin.config.db_config"}}</strong> <dt>{{.i18n.Tr "admin.config.db_host"}}</dt>
</div> <dd>{{.DbCfg.Host}}</dd>
<div class="panel-body"> <dt>{{.i18n.Tr "admin.config.db_name"}}</dt>
<dl class="dl-horizontal admin-dl-horizontal"> <dd>{{.DbCfg.Name}}</dd>
<dt>{{.i18n.Tr "admin.config.db_type"}}</dt> <dt>{{.i18n.Tr "admin.config.db_user"}}</dt>
<dd>{{.DbCfg.Type}}</dd> <dd>{{.DbCfg.User}}</dd>
<dt>{{.i18n.Tr "admin.config.db_host"}}</dt> <dt>{{.i18n.Tr "admin.config.db_ssl_mode"}}</dt>
<dd>{{.DbCfg.Host}}</dd> <dd>{{.DbCfg.SSLMode}} {{.i18n.Tr "admin.config.db_ssl_mode_helper"}}</dd>
<dt>{{.i18n.Tr "admin.config.db_name"}}</dt> <dt>{{.i18n.Tr "admin.config.db_path"}}</dt>
<dd>{{.DbCfg.Name}}</dd> <dd>{{.DbCfg.Path}} {{.i18n.Tr "admin.config.db_path_helper"}}</dd>
<dt>{{.i18n.Tr "admin.config.db_user"}}</dt> </dl>
<dd>{{.DbCfg.User}}</dd> </div>
<dt>{{.i18n.Tr "admin.config.db_ssl_mode"}}</dt>
<dd>{{.DbCfg.SSLMode}} {{.i18n.Tr "admin.config.db_ssl_mode_helper"}}</dd> <h4 class="ui top attached header">
<dt>{{.i18n.Tr "admin.config.db_path"}}</dt> {{.i18n.Tr "admin.config.service_config"}}
<dd>{{.DbCfg.Path}} {{.i18n.Tr "admin.config.db_path_helper"}}</dd> </h4>
</dl> <div class="ui attached table segment">
</div> <dl class="dl-horizontal admin-dl-horizontal">
</div> <dt>{{.i18n.Tr "admin.config.register_email_confirm"}}</dt>
<br> <dd><i class="fa fa{{if .Service.RegisterEmailConfirm}}-check{{end}}-square-o"></i></dd>
<div class="panel panel-radius"> <dt>{{.i18n.Tr "admin.config.disable_register"}}</dt>
<div class="panel-header"> <dd><i class="fa fa{{if .Service.DisableRegistration}}-check{{end}}-square-o"></i></dd>
<strong>{{.i18n.Tr "admin.config.service_config"}}</strong> <dt>{{.i18n.Tr "admin.config.show_registration_button"}}</dt>
</div> <dd><i class="fa fa{{if .Service.ShowRegistrationButton}}-check{{end}}-square-o"></i></dd>
<div class="panel-body"> <dt>{{.i18n.Tr "admin.config.require_sign_in_view"}}</dt>
<dl class="dl-horizontal admin-dl-horizontal"> <dd><i class="fa fa{{if .Service.RequireSignInView}}-check{{end}}-square-o"></i></dd>
<dt>{{.i18n.Tr "admin.config.register_email_confirm"}}</dt> <dt>{{.i18n.Tr "admin.config.enable_cache_avatar"}}</dt>
<dd><i class="fa fa{{if .Service.RegisterEmailConfirm}}-check{{end}}-square-o"></i></dd> <dd><i class="fa fa{{if .Service.EnableCacheAvatar}}-check{{end}}-square-o"></i></dd>
<dt>{{.i18n.Tr "admin.config.disable_register"}}</dt> <dt>{{.i18n.Tr "admin.config.mail_notify"}}</dt>
<dd><i class="fa fa{{if .Service.DisableRegistration}}-check{{end}}-square-o"></i></dd> <dd><i class="fa fa{{if .Service.EnableNotifyMail}}-check{{end}}-square-o"></i></dd>
<dt>{{.i18n.Tr "admin.config.show_registration_button"}}</dt> <dt>{{.i18n.Tr "admin.config.disable_key_size_check"}}</dt>
<dd><i class="fa fa{{if .Service.ShowRegistrationButton}}-check{{end}}-square-o"></i></dd> <dd><i class="fa fa{{if .Service.DisableMinimumKeySizeCheck}}-check{{end}}-square-o"></i></dd>
<dt>{{.i18n.Tr "admin.config.require_sign_in_view"}}</dt> <dt>{{.i18n.Tr "admin.config.enable_captcha"}}</dt>
<dd><i class="fa fa{{if .Service.RequireSignInView}}-check{{end}}-square-o"></i></dd> <dd><i class="fa fa{{if .Service.EnableCaptcha}}-check{{end}}-square-o"></i></dd>
<dt>{{.i18n.Tr "admin.config.enable_cache_avatar"}}</dt> <hr/>
<dd><i class="fa fa{{if .Service.EnableCacheAvatar}}-check{{end}}-square-o"></i></dd> <dt>{{.i18n.Tr "admin.config.active_code_lives"}}</dt>
<dt>{{.i18n.Tr "admin.config.mail_notify"}}</dt> <dd>{{.Service.ActiveCodeLives}} {{.i18n.Tr "tool.raw_minutes"}}</dd>
<dd><i class="fa fa{{if .Service.EnableNotifyMail}}-check{{end}}-square-o"></i></dd> <dt>{{.i18n.Tr "admin.config.reset_password_code_lives"}}</dt>
<dt>{{.i18n.Tr "admin.config.disable_key_size_check"}}</dt> <dd>{{.Service.ResetPwdCodeLives}} {{.i18n.Tr "tool.raw_minutes"}}</dd>
<dd><i class="fa fa{{if .Service.DisableMinimumKeySizeCheck}}-check{{end}}-square-o"></i></dd> </dl>
<dt>{{.i18n.Tr "admin.config.enable_captcha"}}</dt> </div>
<dd><i class="fa fa{{if .Service.EnableCaptcha}}-check{{end}}-square-o"></i></dd>
<hr/> <h4 class="ui top attached header">
<dt>{{.i18n.Tr "admin.config.active_code_lives"}}</dt> {{.i18n.Tr "admin.config.webhook_config"}}
<dd>{{.Service.ActiveCodeLives}} {{.i18n.Tr "tool.raw_minutes"}}</dd> </h4>
<dt>{{.i18n.Tr "admin.config.reset_password_code_lives"}}</dt> <div class="ui attached table segment">
<dd>{{.Service.ResetPwdCodeLives}} {{.i18n.Tr "tool.raw_minutes"}}</dd> <dl class="dl-horizontal admin-dl-horizontal">
</dl> <dt>{{.i18n.Tr "admin.config.queue_length"}}</dt>
</div> <dd>{{.Webhook.QueueLength}}</dd>
</div> <dt>{{.i18n.Tr "admin.config.deliver_timeout"}}</dt>
<br> <dd>{{.Webhook.DeliverTimeout}} {{.i18n.Tr "tool.raw_seconds"}}</dd>
<div class="panel panel-radius"> <dt>{{.i18n.Tr "admin.config.skip_tls_verify"}}</dt>
<div class="panel-header"> <dd><i class="fa fa{{if .Webhook.SkipTLSVerify}}-check{{end}}-square-o"></i></dd>
<strong>{{.i18n.Tr "admin.config.webhook_config"}}</strong> </dl>
</div> </div>
<div class="panel-body">
<dl class="dl-horizontal admin-dl-horizontal"> <h4 class="ui top attached header">
<dt>{{.i18n.Tr "admin.config.queue_length"}}</dt> {{.i18n.Tr "admin.config.mailer_config"}}
<dd>{{.Webhook.QueueLength}}</dd> </h4>
<dt>{{.i18n.Tr "admin.config.deliver_timeout"}}</dt> <div class="ui attached table segment">
<dd>{{.Webhook.DeliverTimeout}} {{.i18n.Tr "tool.raw_seconds"}}</dd> <dl class="dl-horizontal admin-dl-horizontal">
<dt>{{.i18n.Tr "admin.config.skip_tls_verify"}}</dt> <dt>{{.i18n.Tr "admin.config.mailer_enabled"}}</dt>
<dd><i class="fa fa{{if .Webhook.SkipTLSVerify}}-check{{end}}-square-o"></i></dd> <dd><i class="fa fa{{if .MailerEnabled}}-check{{end}}-square-o"></i></dd>
</dl> {{if .MailerEnabled}}<dt>{{.i18n.Tr "admin.config.mailer_name"}}</dt>
</div> <dd>{{.Mailer.Name}}</dd>
</div> <dt>{{.i18n.Tr "admin.config.mailer_disable_helo"}}</dt>
<br> <dd><i class="fa fa{{if .Mailer.DisableHelo}}-check{{end}}-square-o"></i></dd>
<div class="panel panel-radius"> <dt>{{.i18n.Tr "admin.config.mailer_host"}}</dt>
<div class="panel-header"> <dd>{{.Mailer.Host}}</dd>
<strong>{{.i18n.Tr "admin.config.mailer_config"}}</strong> <dt>{{.i18n.Tr "admin.config.mailer_user"}}</dt>
</div> <dd>{{.Mailer.User}}</dd>{{end}}
<div class="panel-body"> </dl>
<dl class="dl-horizontal admin-dl-horizontal"> </div>
<dt>{{.i18n.Tr "admin.config.mailer_enabled"}}</dt>
<dd><i class="fa fa{{if .MailerEnabled}}-check{{end}}-square-o"></i></dd> <h4 class="ui top attached header">
{{if .MailerEnabled}}<dt>{{.i18n.Tr "admin.config.mailer_name"}}</dt> {{.i18n.Tr "admin.config.cache_config"}}
<dd>{{.Mailer.Name}}</dd> </h4>
<dt>{{.i18n.Tr "admin.config.mailer_disable_helo"}}</dt> <div class="ui attached table segment">
<dd><i class="fa fa{{if .Mailer.DisableHelo}}-check{{end}}-square-o"></i></dd> <dl class="dl-horizontal admin-dl-horizontal">
<dt>{{.i18n.Tr "admin.config.mailer_host"}}</dt> <dt>{{.i18n.Tr "admin.config.cache_adapter"}}</dt>
<dd>{{.Mailer.Host}}</dd> <dd>{{.CacheAdapter}}</dd>
<dt>{{.i18n.Tr "admin.config.mailer_user"}}</dt> <dt>{{.i18n.Tr "admin.config.cache_interval"}}</dt>
<dd>{{.Mailer.User}}</dd>{{end}} <dd>{{.CacheInternal}} {{.i18n.Tr "tool.raw_seconds"}}</dd>
</dl> <dt>{{.i18n.Tr "admin.config.cache_conn"}}</dt>
</div> <dd><pre>{{.CacheConn}}</pre></dd>
</div> </dl>
<br> </div>
<div class="panel panel-radius">
<div class="panel-header"> <h4 class="ui top attached header">
<strong>{{.i18n.Tr "admin.config.cache_config"}}</strong> {{.i18n.Tr "admin.config.session_config"}}
</div> </h4>
<div class="panel-body"> <div class="ui attached table segment">
<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.session_provider"}}</dt>
<dd>{{.CacheAdapter}}</dd> <dd>{{.SessionConfig.Provider}}</dd>
<dt>{{.i18n.Tr "admin.config.cache_interval"}}</dt> <dt>{{.i18n.Tr "admin.config.provider_config"}}</dt>
<dd>{{.CacheInternal}} {{.i18n.Tr "tool.raw_seconds"}}</dd> <dd><pre>{{.SessionConfig.ProviderConfig}}</pre></dd>
<dt>{{.i18n.Tr "admin.config.cache_conn"}}</dt> <dt>{{.i18n.Tr "admin.config.cookie_name"}}</dt>
<dd><pre>{{.CacheConn}}</pre></dd> <dd>{{.SessionConfig.CookieName}}</dd>
</dl> <dt>{{.i18n.Tr "admin.config.gc_interval_time"}}</dt>
</div> <dd>{{.SessionConfig.Gclifetime}} {{.i18n.Tr "tool.raw_seconds"}}</dd>
</div> <dt>{{.i18n.Tr "admin.config.session_life_time"}}</dt>
<br> <dd>{{.SessionConfig.Maxlifetime}} {{.i18n.Tr "tool.raw_seconds"}}</dd>
<div class="panel panel-radius"> <dt>{{.i18n.Tr "admin.config.https_only"}}</dt>
<div class="panel-header"> <dd><i class="fa fa{{if .SessionConfig.Secure}}-check{{end}}-square-o"></i></dd>
<strong>{{.i18n.Tr "admin.config.session_config"}}</strong> <dt>{{.i18n.Tr "admin.config.cookie_life_time"}}</dt>
</div> <dd>{{.SessionConfig.CookieLifeTime}} {{.i18n.Tr "tool.raw_seconds"}}</dd>
<div class="panel-body"> </dl>
<dl class="dl-horizontal admin-dl-horizontal"> </div>
<dt>{{.i18n.Tr "admin.config.session_provider"}}</dt>
<dd>{{.SessionConfig.Provider}}</dd> <h4 class="ui top attached header">
<dt>{{.i18n.Tr "admin.config.provider_config"}}</dt> {{.i18n.Tr "admin.config.picture_config"}}
<dd><pre>{{.SessionConfig.ProviderConfig}}</pre></dd> </h4>
<dt>{{.i18n.Tr "admin.config.cookie_name"}}</dt> <div class="ui attached table segment">
<dd>{{.SessionConfig.CookieName}}</dd> <dl class="dl-horizontal admin-dl-horizontal">
<dt>{{.i18n.Tr "admin.config.gc_interval_time"}}</dt> <dt>{{.i18n.Tr "admin.config.picture_service"}}</dt>
<dd>{{.SessionConfig.Gclifetime}} {{.i18n.Tr "tool.raw_seconds"}}</dd> <dd>{{.PictureService}}</dd>
<dt>{{.i18n.Tr "admin.config.session_life_time"}}</dt> <dt>{{.i18n.Tr "admin.config.disable_gravatar"}}</dt>
<dd>{{.SessionConfig.Maxlifetime}} {{.i18n.Tr "tool.raw_seconds"}}</dd> <dd><i class="fa fa{{if .DisableGravatar}}-check{{end}}-square-o"></i></dd>
<dt>{{.i18n.Tr "admin.config.https_only"}}</dt> </dl>
<dd><i class="fa fa{{if .SessionConfig.Secure}}-check{{end}}-square-o"></i></dd> </div>
<dt>{{.i18n.Tr "admin.config.cookie_life_time"}}</dt>
<dd>{{.SessionConfig.CookieLifeTime}} {{.i18n.Tr "tool.raw_seconds"}}</dd> <h4 class="ui top attached header">
</dl> {{.i18n.Tr "admin.config.log_config"}}
</div> </h4>
</div> <div class="ui attached table segment">
<br> <dl class="dl-horizontal admin-dl-horizontal">
<div class="panel panel-radius"> {{range .Loggers}}
<div class="panel-header"> <dt>{{$.i18n.Tr "admin.config.log_mode"}}</dt>
<strong>{{.i18n.Tr "admin.config.picture_config"}}</strong> <dd>{{.Mode}}</dd>
</div> <dt>{{$.i18n.Tr "admin.config.log_config"}}</dt>
<div class="panel-body"> <dd><pre>{{.Config}}</pre></dd>
<dl class="dl-horizontal admin-dl-horizontal"> {{end}}
<dt>{{.i18n.Tr "admin.config.picture_service"}}</dt> </dl>
<dd>{{.PictureService}}</dd> </div>
<dt>{{.i18n.Tr "admin.config.disable_gravatar"}}</dt> </div>
<dd><i class="fa fa{{if .DisableGravatar}}-check{{end}}-square-o"></i></dd>
</dl>
</div>
</div>
<br>
<div class="panel panel-radius">
<div class="panel-header">
<strong>{{.i18n.Tr "admin.config.log_config"}}</strong>
</div>
<div class="panel-body">
<dl class="dl-horizontal admin-dl-horizontal">
{{range .Loggers}}
<dt>{{$.i18n.Tr "admin.config.log_mode"}}</dt>
<dd>{{.Mode}}</dd>
<dt>{{$.i18n.Tr "admin.config.log_config"}}</dt>
<dd><pre>{{.Config}}</pre></dd>
{{end}}
</dl>
</div>
</div>
</div>
</div>
</div>
</div>
</div> </div>
</div>
</div> </div>
{{template "ng/base/footer" .}} {{template "base/footer" .}}