diff options
Diffstat (limited to 'templates/admin/config.tmpl')
-rw-r--r-- | templates/admin/config.tmpl | 145 |
1 files changed, 100 insertions, 45 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index ab805d8dea..31cfb77bad 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -2,22 +2,31 @@ {{template "base/navbar" .}} <div id="body" class="container" data-page="admin"> {{template "admin/nav" .}} - <div id="admin-container" class="col-md-9"> + <div id="admin-container" class="col-md-10"> <div class="panel panel-default"> <div class="panel-heading"> Server Configuration </div> <div class="panel-body"> - <div><b>Application Name:</b> {{AppName}}</div> - <div><b>Application Version:</b> {{AppVer}}</div> - <div><b>Application URL:</b> {{.AppUrl}}</div> - <div><b>Domain:</b> {{.Domain}}</div> - <hr/> - <div><b>Run User:</b> {{.RunUser}}</div> - <div><b>Run Mode:</b> {{.RunMode}}</div> - <hr/> - <div><b>Repository Root Path:</b> {{.RepoRootPath}}</div> + <dl class="dl-horizontal admin-dl-horizontal"> + <dt>Application Name</dt> + <dd>{{AppName}}</dd> + <dt>Application Version</dt> + <dd>{{AppVer}}</dd> + <dt>Application URL</dt> + <dd>{{.AppUrl}}</dd> + <dt>Domain</dt> + <dd>{{.Domain}}</dd> + <hr/> + <dt>Run User</dt> + <dd>{{.RunUser}}</dd> + <dt>Run Mode</dt> + <dd>{{.RunMode}}</dd> + <hr/> + <dt>Repository Root Path</dt> + <dd>{{.RepoRootPath}}</dd> + </dl> </div> </div> @@ -27,12 +36,20 @@ </div> <div class="panel-body"> - <div><b>Type:</b> {{.DbCfg.Type}}</div> - <div><b>Host:</b> {{.DbCfg.Host}}</div> - <div><b>Name:</b> {{.DbCfg.Name}}</div> - <div><b>User:</b> {{.DbCfg.User}}</div> - <div><b>SslMode:</b> {{.DbCfg.SslMode}} (for "postgres" only)</div> - <div><b>Path:</b> {{.DbCfg.Path}} (for "sqlite3" only)</div> + <dl class="dl-horizontal admin-dl-horizontal"> + <dt>Type</dt> + <dd>{{.DbCfg.Type}}</dd> + <dt>Host</dt> + <dd>{{.DbCfg.Host}}</dd> + <dt>Name</dt> + <dd>{{.DbCfg.Name}}</dd> + <dt>User</dt> + <dd>{{.DbCfg.User}}</dd> + <dt>SslMode</dt> + <dd>{{.DbCfg.SslMode}} (for "postgres" only)</dd> + <dt>Path</dt> + <dd>{{.DbCfg.Path}} (for "sqlite3" only)</dd> + </dl> </div> </div> @@ -42,14 +59,23 @@ </div> <div class="panel-body"> - <div><b>Register Email Confirmation:</b> <i class="fa fa{{if .Service.RegisterEmailConfirm}}-check{{end}}-square-o"></i></div> - <div><b>Disenable Registeration:</b> <i class="fa fa{{if .Service.DisenableRegisteration}}-check{{end}}-square-o"></i></div> - <div><b>Require Sign In View:</b> <i class="fa fa{{if .Service.RequireSignInView}}-check{{end}}-square-o"></i></div> - <div><b>Mail Notification:</b> <i class="fa fa{{if .Service.NotifyMail}}-check{{end}}-square-o"></i></div> - <div><b>Enable Cache Avatar:</b> <i class="fa fa{{if .Service.EnableCacheAvatar}}-check{{end}}-square-o"></i></div> - <hr/> - <div><b>Active Code Lives:</b> {{.Service.ActiveCodeLives}} minutes</div> - <div><b>Reset Password Code Lives:</b> {{.Service.ResetPwdCodeLives}} minutes</div> + <dl class="dl-horizontal admin-dl-horizontal"> + <dt>Register Email Confirmation</dt> + <dd><i class="fa fa{{if .Service.RegisterEmailConfirm}}-check{{end}}-square-o"></i></dd> + <dt>Disenable Registeration</dt> + <dd><i class="fa fa{{if .Service.DisenableRegisteration}}-check{{end}}-square-o"></i></dd> + <dt>Require Sign In View</dt> + <dd><i class="fa fa{{if .Service.RequireSignInView}}-check{{end}}-square-o"></i></dd> + <dt>Mail Notification</dt> + <dd><i class="fa fa{{if .Service.NotifyMail}}-check{{end}}-square-o"></i></dd> + <dt>Enable Cache Avatar</dt> + <dd><i class="fa fa{{if .Service.EnableCacheAvatar}}-check{{end}}-square-o"></i></dd> + <hr/> + <dt>Active Code Lives</dt> + <dd>{{.Service.ActiveCodeLives}} minutes</dd> + <dt>Reset Password Code Lives</dt> + <dd>{{.Service.ResetPwdCodeLives}} minutes</dd> + </dl> </div> </div> @@ -59,10 +85,16 @@ </div> <div class="panel-body"> - <div><b>Enabled:</b> <i class="fa fa{{if .MailerEnabled}}-check{{end}}-square-o"></i></div> - <div><b>Name:</b> {{.Mailer.Name}}</div> - <div><b>Host:</b> {{.Mailer.Host}}</div> - <div><b>User:</b> {{.Mailer.User}}</div> + <dl class="dl-horizontal admin-dl-horizontal"> + <dt>Enabled</dt> + <dd><i class="fa fa{{if .MailerEnabled}}-check{{end}}-square-o"></i></dd> + <dt>Name</dt> + <dd>{{.Mailer.Name}}</dd> + <dt>Host</dt> + <dd>{{.Mailer.Host}}</dd> + <dt>User</dt> + <dd>{{.Mailer.User}}</dd> + </dl> </div> </div> @@ -72,9 +104,12 @@ </div> <div class="panel-body"> - <div><b>Cache Adapter:</b> {{.CacheAdapter}}</div> - <div><b>Cache Config:</b></div> - <div style="padding-top: 5px;"><pre>{{.CacheConfig}}</pre></div> + <dl class="dl-horizontal admin-dl-horizontal"> + <dt>Cache Adapter</dt> + <dd>{{.CacheAdapter}}</dd> + <dt>Cache Config</dt> + <dd><div style="padding-top: 5px;"><pre>{{.CacheConfig}}</pre></div></dd> + </dl> </div> </div> @@ -84,16 +119,28 @@ </div> <div class="panel-body"> - <div><b>Session Provider:</b> {{.SessionProvider}}</div> - <div><b>Cookie Name:</b> {{.SessionConfig.CookieName}}</div> - <div><b>Enable Set Cookie:</b> <i class="fa fa{{if .SessionConfig.EnableSetCookie}}-check{{end}}-square-o"></i></div> - <div><b>GC Interval Time:</b> {{.SessionConfig.GcIntervalTime}} seconds</div> - <div><b>Session Life Time:</b> {{.SessionConfig.SessionLifeTime}} seconds</div> - <div><b>HTTPS Only:</b> <i class="fa fa{{if .SessionConfig.CookieSecure}}-check{{end}}-square-o"></i></div> - <div><b>Cookie Life Time:</b> {{.SessionConfig.CookieLifeTime}} seconds</div> - <div><b>Session ID Hash Function:</b> {{.SessionConfig.SessionIDHashFunc}}</div> - <div><b>Session ID Hash Key:</b> {{.SessionConfig.SessionIDHashKey}}</div> - <div><b>Provider Config:</b> {{.SessionConfig.ProviderConfig}}</div> + <dl class="dl-horizontal admin-dl-horizontal"> + <dt>Session Provider</dt> + <dd>{{.SessionProvider}}</dd> + <dt>Cookie Name</dt> + <dd>{{.SessionConfig.CookieName}}</dd> + <dt>Enable Set Cookie</dt> + <dd><i class="fa fa{{if .SessionConfig.EnableSetCookie}}-check{{end}}-square-o"></i></dd> + <dt>GC Interval Time</dt> + <dd>{{.SessionConfig.GcIntervalTime}} seconds</dd> + <dt>Session Life Time</dt> + <dd>{{.SessionConfig.SessionLifeTime}} seconds</dd> + <dt>HTTPS Only</dt> + <dd><i class="fa fa{{if .SessionConfig.CookieSecure}}-check{{end}}-square-o"></i></dd> + <dt>Cookie Life Time</dt> + <dd>{{.SessionConfig.CookieLifeTime}} seconds</dd> + <dt>Session ID Hash Function</dt> + <dd>{{.SessionConfig.SessionIDHashFunc}}</dd> + <dt>Session ID Hash Key</dt> + <dd>{{.SessionConfig.SessionIDHashKey}}</dd> + <dt>Provider Config</dt> + <dd>{{.SessionConfig.ProviderConfig}}</dd> + </dl> </div> </div> @@ -103,7 +150,10 @@ </div> <div class="panel-body"> - <div><b>Picture Service:</b> {{.PictureService}}</div> + <dl class="dl-horizontal admin-dl-horizontal"> + <dt>Picture Service</dt> + <dd>{{.PictureService}}</dd> + </dl> </div> </div> @@ -113,9 +163,14 @@ </div> <div class="panel-body"> - <div><b>Log Mode:</b> {{.LogMode}}</div> - <div><b>Log Config:</b></div> - <div style="padding-top: 5px;"><pre>{{.LogConfig}}</pre></div> + <dl class="dl-horizontal admin-dl-horizontal"> + <dt>Log Mode</dt> + <dd>{{.LogMode}}</dd> + <dt>Log Config</dt> + <dd> + <div style="padding-top: 5px;"><pre>{{.LogConfig}}</pre></div> + </dd> + </dl> </div> </div> |