From 9bc63bda7ded31b77ad4aaf3495582a7c8555d2f Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 30 Aug 2014 20:49:51 +0800 Subject: Finish all new admin pages. --- templates/admin/config.tmpl | 454 ++++++++++++++++++++++---------------------- 1 file changed, 226 insertions(+), 228 deletions(-) (limited to 'templates/admin/config.tmpl') diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index 34e710bf62..e5a210c200 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -1,232 +1,230 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -
- {{template "admin/nav" .}} -
-
-
- Server Configuration -
- -
-
-
Application Name
-
{{AppName}}
-
Application Version
-
{{AppVer}}
-
Application URL
-
{{.AppUrl}}
-
Domain
-
{{.Domain}}
-
Offline Mode
-
-
Disable Router Log
-
-
-
Run User
-
{{.RunUser}}
-
Run Mode
-
{{.RunMode}}
-
-
Repository Root Path
-
{{.RepoRootPath}}
-
Static File Root Path
-
{{.StaticRootPath}}
-
Log File Root Path
-
{{.LogRootPath}}
-
Script Type
-
{{.ScriptType}}
-
Reverse Authentication User
-
{{.ReverseProxyAuthUser}}
-
-
-
- -
-
- Database Configuration -
- -
-
-
Type
-
{{.DbCfg.Type}}
-
Host
-
{{.DbCfg.Host}}
-
Name
-
{{.DbCfg.Name}}
-
User
-
{{.DbCfg.User}}
-
SslMode
-
{{.DbCfg.SslMode}} (for "postgres" only)
-
Path
-
{{.DbCfg.Path}} (for "sqlite3" only)
-
-
-
- -
-
- Service Configuration -
- -
-
-
Register Email Confirmation
-
-
Disable Registration
-
-
Require Sign In View
-
-
Mail Notification
-
-
Enable Cache Avatar
-
-
-
Active Code Lives
-
{{.Service.ActiveCodeLives}} minutes
-
Reset Password Code Lives
-
{{.Service.ResetPwdCodeLives}} minutes
-
-
-
- -
-
- Webhook Configuration -
- -
-
-
Task Interval
-
{{.WebhookTaskInterval}} minutes
-
Deliver Timeout
-
{{.WebhookDeliverTimeout}} seconds
-
-
-
- -
-
- Mailer Configuration -
- -
-
-
Enabled
-
- {{if .MailerEnabled}}
Name
-
{{.Mailer.Name}}
-
Host
-
{{.Mailer.Host}}
-
User
-
{{.Mailer.User}}
{{end}} -
-
-
- -
-
- OAuth Configuration -
- -
-
-
Enabled
-
- {{if .OauthEnabled}}
GitHub
-
-
Google
-
-
Tencent QQ
-
-
Weibo
-
- {{end}} -
-
-
- -
-
- Cache Configuration -
- -
-
-
Cache Adapter
-
{{.CacheAdapter}}
-
Cache Config
-
{{.CacheConfig}}
-
-
-
- -
-
- Session Configuration -
- -
-
-
Session Provider
-
{{.SessionProvider}}
-
Cookie Name
-
{{.SessionConfig.CookieName}}
-
Enable Set Cookie
-
-
GC Interval Time
-
{{.SessionConfig.Gclifetime}} seconds
-
Session Life Time
-
{{.SessionConfig.Maxlifetime}} seconds
-
HTTPS Only
-
-
Cookie Life Time
-
{{.SessionConfig.CookieLifeTime}} seconds
-
Session ID Hash Function
-
{{.SessionConfig.SessionIDHashFunc}}
-
Session ID Hash Key
-
{{.SessionConfig.SessionIDHashKey}}
-
Provider Config
-
{{.SessionConfig.ProviderConfig}}
-
-
-
- -
-
- Picture Configuration -
- -
-
-
Picture Service
-
{{.PictureService}}
-
Disable Gravatar
-
-
-
-
- -
-
- Log Configuration -
- -
-
- {{range .Loggers}} -
Log Mode
-
{{.Mode}}
-
Log Config
-
-
{{.Config}}
-
- {{end}} -
- +{{template "ng/base/head" .}} +{{template "ng/base/header" .}} +
+
+
+ {{template "admin/nav" .}} +
+
+ {{template "ng/base/alert" .}} +
+
+
+ {{.i18n.Tr "admin.config.server_config"}} +
+
+
+
{{.i18n.Tr "admin.config.app_name"}}
+
{{AppName}}
+
{{.i18n.Tr "admin.config.app_ver"}}
+
{{AppVer}}
+
{{.i18n.Tr "admin.config.app_url"}}
+
{{.AppUrl}}
+
{{.i18n.Tr "admin.config.domain"}}
+
{{.Domain}}
+
{{.i18n.Tr "admin.config.offline_mode"}}
+
+
{{.i18n.Tr "admin.config.disable_router_log"}}
+
+
+
{{.i18n.Tr "admin.config.run_user"}}
+
{{.RunUser}}
+
{{.i18n.Tr "admin.config.run_mode"}}
+
{{.RunMode}}
+
+
{{.i18n.Tr "admin.config.repo_root_path"}}
+
{{.RepoRootPath}}
+
{{.i18n.Tr "admin.config.static_file_root_path"}}
+
{{.StaticRootPath}}
+
{{.i18n.Tr "admin.config.log_file_root_path"}}
+
{{.LogRootPath}}
+
{{.i18n.Tr "admin.config.script_type"}}
+
{{.ScriptType}}
+
{{.i18n.Tr "admin.config.reverse_auth_user"}}
+
{{.ReverseProxyAuthUser}}
+
+
+
+
+
+
+ {{.i18n.Tr "admin.config.db_config"}} +
+
+
+
{{.i18n.Tr "admin.config.db_type"}}
+
{{.DbCfg.Type}}
+
{{.i18n.Tr "admin.config.db_host"}}
+
{{.DbCfg.Host}}
+
{{.i18n.Tr "admin.config.db_name"}}
+
{{.DbCfg.Name}}
+
{{.i18n.Tr "admin.config.db_user"}}
+
{{.DbCfg.User}}
+
{{.i18n.Tr "admin.config.db_ssl_mode"}}
+
{{.DbCfg.SslMode}} {{.i18n.Tr "admin.config.db_ssl_mode_helper"}}
+
{{.i18n.Tr "admin.config.db_path"}}
+
{{.DbCfg.Path}} {{.i18n.Tr "admin.config.db_path_helper"}}
+
+
+
+
+
+
+ {{.i18n.Tr "admin.config.service_config"}} +
+
+
+
{{.i18n.Tr "admin.config.register_email_confirm"}}
+
+
{{.i18n.Tr "admin.config.disable_register"}}
+
+
{{.i18n.Tr "admin.config.require_sign_in_view"}}
+
+
{{.i18n.Tr "admin.config.mail_notify"}}
+
+
{{.i18n.Tr "admin.config.enable_cache_avatar"}}
+
+
+
{{.i18n.Tr "admin.config.active_code_lives"}}
+
{{.Service.ActiveCodeLives}} {{.i18n.Tr "tool.raw_minutes"}}
+
{{.i18n.Tr "admin.config.reset_password_code_lives"}}
+
{{.Service.ResetPwdCodeLives}} {{.i18n.Tr "tool.raw_minutes"}}
+
+
+
+
+
+
+ {{.i18n.Tr "admin.config.webhook_config"}} +
+
+
+
{{.i18n.Tr "admin.config.task_interval"}}
+
{{.WebhookTaskInterval}} {{.i18n.Tr "tool.raw_minutes"}}
+
{{.i18n.Tr "admin.config.deliver_timeout"}}
+
{{.WebhookDeliverTimeout}} {{.i18n.Tr "tool.raw_seconds"}}
+
+
+
+
+
+
+ {{.i18n.Tr "admin.config.mailer_config"}} +
+
+
+
{{.i18n.Tr "admin.config.mailer_enabled"}}
+
+ {{if .MailerEnabled}}
{{.i18n.Tr "admin.config.mailer_name"}}
+
{{.Mailer.Name}}
+
{{.i18n.Tr "admin.config.mailer_host"}}
+
{{.Mailer.Host}}
+
{{.i18n.Tr "admin.config.mailer_user"}}
+
{{.Mailer.User}}
{{end}} +
+
+
+
+
+
+ {{.i18n.Tr "admin.config.oauth_config"}} +
+
+
+
{{.i18n.Tr "admin.config.oauth_enabled"}}
+
+ {{if .OauthEnabled}}
GitHub
+
+
Google
+
+
腾讯 QQ
+
+
新浪微博
+
+ {{end}} +
+
+
+
+
+
+ {{.i18n.Tr "admin.config.cache_config"}} +
+
+
+
{{.i18n.Tr "admin.config.cache_adapter"}}
+
{{.CacheAdapter}}
+
{{.i18n.Tr "admin.config.cache_interval"}}
+
{{.CacheInternal}} {{.i18n.Tr "tool.raw_seconds"}}
+
{{.i18n.Tr "admin.config.cache_conn"}}
+
{{.CacheConn}}
+
+
+
+
+
+
+ {{.i18n.Tr "admin.config.session_config"}} +
+
+
+
{{.i18n.Tr "admin.config.session_provider"}}
+
{{.SessionProvider}}
+
{{.i18n.Tr "admin.config.provider_config"}}
+
{{.SessionConfig.ProviderConfig}}
+
{{.i18n.Tr "admin.config.cookie_name"}}
+
{{.SessionConfig.CookieName}}
+
{{.i18n.Tr "admin.config.enable_set_cookie"}}
+
+
{{.i18n.Tr "admin.config.gc_interval_time"}}
+
{{.SessionConfig.Gclifetime}} {{.i18n.Tr "tool.raw_seconds"}}
+
{{.i18n.Tr "admin.config.session_life_time"}}
+
{{.SessionConfig.Maxlifetime}} {{.i18n.Tr "tool.raw_seconds"}}
+
{{.i18n.Tr "admin.config.https_only"}}
+
+
{{.i18n.Tr "admin.config.cookie_life_time"}}
+
{{.SessionConfig.CookieLifeTime}} {{.i18n.Tr "tool.raw_seconds"}}
+
{{.i18n.Tr "admin.config.session_hash_function"}}
+
{{.SessionConfig.SessionIDHashFunc}}
+
{{.i18n.Tr "admin.config.session_hash_key"}}
+
{{.SessionConfig.SessionIDHashKey}}
+
+
+
+
+
+
+ {{.i18n.Tr "admin.config.picture_config"}} +
+
+
+
{{.i18n.Tr "admin.config.picture_service"}}
+
{{.PictureService}}
+
{{.i18n.Tr "admin.config.disable_gravatar"}}
+
+
+
+
+
+
+
+ {{.i18n.Tr "admin.config.log_config"}} +
+
+
+ {{range .Loggers}} +
{{$.i18n.Tr "admin.config.log_mode"}}
+
{{.Mode}}
+
{{$.i18n.Tr "admin.config.log_config"}}
+
{{.Config}}
+ {{end}} +
+
+
+
+
-{{template "base/footer" .}} \ No newline at end of file +{{template "ng/base/footer" .}} \ No newline at end of file -- cgit v1.2.3