Description list instead of div's in admin Dashboard & Configuration.

tokarchuk/v1.17
crackcomm 11 years ago
parent 1240041b4d
commit 868d921f7b
  1. 10
      public/css/gogs.css
  2. 143
      templates/admin/config.tmpl
  3. 121
      templates/admin/dashboard.tmpl

@ -1231,3 +1231,13 @@ html, body {
#footer a { #footer a {
color: #000; color: #000;
} }
/* admin dashboard/configuration */
.dl-horizontal > dt {
width: 320px;
}
.dl-horizontal > dd {
margin-left: 340px;
}

@ -9,15 +9,24 @@
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div><b>Application Name:</b> {{AppName}}</div> <dl class="dl-horizontal">
<div><b>Application Version:</b> {{AppVer}}</div> <dt>Application Name</dt>
<div><b>Application URL:</b> {{.AppUrl}}</div> <dd>{{AppName}}</dd>
<div><b>Domain:</b> {{.Domain}}</div> <dt>Application Version</dt>
<hr/> <dd>{{AppVer}}</dd>
<div><b>Run User:</b> {{.RunUser}}</div> <dt>Application URL</dt>
<div><b>Run Mode:</b> {{.RunMode}}</div> <dd>{{.AppUrl}}</dd>
<hr/> <dt>Domain</dt>
<div><b>Repository Root Path:</b> {{.RepoRootPath}}</div> <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>
</div> </div>
@ -27,12 +36,20 @@
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div><b>Type:</b> {{.DbCfg.Type}}</div> <dl class="dl-horizontal">
<div><b>Host:</b> {{.DbCfg.Host}}</div> <dt>Type</dt>
<div><b>Name:</b> {{.DbCfg.Name}}</div> <dd>{{.DbCfg.Type}}</dd>
<div><b>User:</b> {{.DbCfg.User}}</div> <dt>Host</dt>
<div><b>SslMode:</b> {{.DbCfg.SslMode}} (for "postgres" only)</div> <dd>{{.DbCfg.Host}}</dd>
<div><b>Path:</b> {{.DbCfg.Path}} (for "sqlite3" only)</div> <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>
</div> </div>
@ -42,14 +59,23 @@
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div><b>Register Email Confirmation:</b> <i class="fa fa{{if .Service.RegisterEmailConfirm}}-check{{end}}-square-o"></i></div> <dl class="dl-horizontal">
<div><b>Disenable Registeration:</b> <i class="fa fa{{if .Service.DisenableRegisteration}}-check{{end}}-square-o"></i></div> <dt>Register Email Confirmation</dt>
<div><b>Require Sign In View:</b> <i class="fa fa{{if .Service.RequireSignInView}}-check{{end}}-square-o"></i></div> <dd><i class="fa fa{{if .Service.RegisterEmailConfirm}}-check{{end}}-square-o"></i></dd>
<div><b>Mail Notification:</b> <i class="fa fa{{if .Service.NotifyMail}}-check{{end}}-square-o"></i></div> <dt>Disenable Registeration</dt>
<div><b>Enable Cache Avatar:</b> <i class="fa fa{{if .Service.EnableCacheAvatar}}-check{{end}}-square-o"></i></div> <dd><i class="fa fa{{if .Service.DisenableRegisteration}}-check{{end}}-square-o"></i></dd>
<hr/> <dt>Require Sign In View</dt>
<div><b>Active Code Lives:</b> {{.Service.ActiveCodeLives}} minutes</div> <dd><i class="fa fa{{if .Service.RequireSignInView}}-check{{end}}-square-o"></i></dd>
<div><b>Reset Password Code Lives:</b> {{.Service.ResetPwdCodeLives}} minutes</div> <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>
</div> </div>
@ -59,10 +85,16 @@
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div><b>Enabled:</b> <i class="fa fa{{if .MailerEnabled}}-check{{end}}-square-o"></i></div> <dl class="dl-horizontal">
<div><b>Name:</b> {{.Mailer.Name}}</div> <dt>Enabled</dt>
<div><b>Host:</b> {{.Mailer.Host}}</div> <dd><i class="fa fa{{if .MailerEnabled}}-check{{end}}-square-o"></i></dd>
<div><b>User:</b> {{.Mailer.User}}</div> <dt>Name</dt>
<dd>{{.Mailer.Name}}</dd>
<dt>Host</dt>
<dd>{{.Mailer.Host}}</dd>
<dt>User</dt>
<dd>{{.Mailer.User}}</dd>
</dl>
</div> </div>
</div> </div>
@ -72,9 +104,12 @@
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div><b>Cache Adapter:</b> {{.CacheAdapter}}</div> <dl class="dl-horizontal">
<div><b>Cache Config:</b></div> <dt>Cache Adapter</dt>
<div style="padding-top: 5px;"><pre>{{.CacheConfig}}</pre></div> <dd>{{.CacheAdapter}}</dd>
<dt>Cache Config</dt>
<dd><div style="padding-top: 5px;"><pre>{{.CacheConfig}}</pre></div></dd>
</dl>
</div> </div>
</div> </div>
@ -84,16 +119,28 @@
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div><b>Session Provider:</b> {{.SessionProvider}}</div> <dl class="dl-horizontal">
<div><b>Cookie Name:</b> {{.SessionConfig.CookieName}}</div> <dt>Session Provider</dt>
<div><b>Enable Set Cookie:</b> <i class="fa fa{{if .SessionConfig.EnableSetCookie}}-check{{end}}-square-o"></i></div> <dd>{{.SessionProvider}}</dd>
<div><b>GC Interval Time:</b> {{.SessionConfig.GcIntervalTime}} seconds</div> <dt>Cookie Name</dt>
<div><b>Session Life Time:</b> {{.SessionConfig.SessionLifeTime}} seconds</div> <dd>{{.SessionConfig.CookieName}}</dd>
<div><b>HTTPS Only:</b> <i class="fa fa{{if .SessionConfig.CookieSecure}}-check{{end}}-square-o"></i></div> <dt>Enable Set Cookie</dt>
<div><b>Cookie Life Time:</b> {{.SessionConfig.CookieLifeTime}} seconds</div> <dd><i class="fa fa{{if .SessionConfig.EnableSetCookie}}-check{{end}}-square-o"></i></dd>
<div><b>Session ID Hash Function:</b> {{.SessionConfig.SessionIDHashFunc}}</div> <dt>GC Interval Time</dt>
<div><b>Session ID Hash Key:</b> {{.SessionConfig.SessionIDHashKey}}</div> <dd>{{.SessionConfig.GcIntervalTime}} seconds</dd>
<div><b>Provider Config:</b> {{.SessionConfig.ProviderConfig}}</div> <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>
</div> </div>
@ -103,7 +150,10 @@
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div><b>Picture Service:</b> {{.PictureService}}</div> <dl class="dl-horizontal">
<dt>Picture Service</dt>
<dd>{{.PictureService}}</dd>
</dl>
</div> </div>
</div> </div>
@ -113,9 +163,14 @@
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div><b>Log Mode:</b> {{.LogMode}}</div> <dl class="dl-horizontal">
<div><b>Log Config:</b></div> <dt>Log Mode</dt>
<div style="padding-top: 5px;"><pre>{{.LogConfig}}</pre></div> <dd>{{.LogMode}}</dd>
<dt>Log Config</dt>
<dd>
<div style="padding-top: 5px;"><pre>{{.LogConfig}}</pre></div>
</dd>
</dl>
</div> </div>
</div> </div>

@ -19,38 +19,95 @@
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div>Server Uptime: <b>{{.SysStatus.Uptime}}</b></div> <dl class="dl-horizontal">
<div>Current Goroutines: <b>{{.SysStatus.NumGoroutine}}</b></div> <dt>Server Uptime</dt>
<hr/> <dd>{{.SysStatus.Uptime}}</dd>
<div>Current Memory Usage: <b>{{.SysStatus.MemAllocated}}</b></div>
<div>Total Memory Allocated: <b>{{.SysStatus.MemTotal}}</b></div> <dt>Current Goroutines</dt>
<div>Memory Obtained: <b>{{.SysStatus.MemSys}}</b></div> <dd>{{.SysStatus.NumGoroutine}}</dd>
<div>Pointer Lookup Times: <b>{{.SysStatus.Lookups}}</b></div>
<div>Memory Allocate Times: <b>{{.SysStatus.MemMallocs}}</b></div> <hr/>
<div>Memory Free Times: <b>{{.SysStatus.MemFrees}}</b></div> <dt>Current Memory Usage</dt>
<hr/> <dd>{{.SysStatus.MemAllocated}}</dd>
<div>Current Heap Usage: <b>{{.SysStatus.HeapAlloc}}</b></div>
<div>Heap Memory Obtained: <b>{{.SysStatus.HeapSys}}</b></div> <dt>Total Memory Allocated</dt>
<div>Heap Memory Idle: <b>{{.SysStatus.HeapIdle}}</b></div> <dd>{{.SysStatus.MemTotal}}</dd>
<div>Heap Memory In Use: <b>{{.SysStatus.HeapInuse}}</b></div>
<div>Heap Memory Released: <b>{{.SysStatus.HeapReleased}}</b></div> <dt>Memory Obtained</dt>
<div>Heap Objects: <b>{{.SysStatus.HeapObjects}}</b></div> <dd>{{.SysStatus.MemSys}}</dd>
<hr/>
<div>Bootstrap Stack Usage: <b>{{.SysStatus.StackInuse}}</b></div> <dt>Pointer Lookup Times</dt>
<div>Stack Memory Obtained: <b>{{.SysStatus.StackSys}}</b></div> <dd>{{.SysStatus.Lookups}}</dd>
<div>MSpan Structures Usage: <b>{{.SysStatus.MSpanInuse}}</b></div>
<div>MSpan Structures Obtained: <b>{{.SysStatus.HeapSys}}</b></div> <dt>Memory Allocate Times</dt>
<div>MCache Structures Usage: <b>{{.SysStatus.MCacheInuse}}</b></div> <dd>{{.SysStatus.MemMallocs}}</dd>
<div>MCache Structures Obtained: <b>{{.SysStatus.MCacheSys}}</b></div>
<div>Profiling Bucket Hash Table Obtained: <b>{{.SysStatus.BuckHashSys}}</b></div> <dt>Memory Free Times</dt>
<div>GC Metadada Obtained: <b>{{.SysStatus.GCSys}}</b></div> <dd>{{.SysStatus.MemFrees}}</dd>
<div>Other System Allocation Obtained: <b>{{.SysStatus.OtherSys}}</b></div>
<hr/> <hr/>
<div>Next GC Recycle: <b>{{.SysStatus.NextGC}}</b></div> <dt>Current Heap Usage</dt>
<div>Last GC Time: <b>{{.SysStatus.LastGC}} ago</b></div> <dd>{{.SysStatus.HeapAlloc}}</dd>
<div>Total GC Pause: <b>{{.SysStatus.PauseTotalNs}}</b></div>
<div>Last GC Pause: <b>{{.SysStatus.PauseNs}}</b></div> <dt>Heap Memory Obtained</dt>
<div>GC Times: <b>{{.SysStatus.NumGC}}</b></div> <dd>{{.SysStatus.HeapSys}}</dd>
<dt>Heap Memory Idle</dt>
<dd>{{.SysStatus.HeapIdle}}</dd>
<dt>Heap Memory In Use</dt>
<dd>{{.SysStatus.HeapInuse}}</dd>
<dt>Heap Memory Released</dt>
<dd>{{.SysStatus.HeapReleased}}</dd>
<dt>Heap Objects</dt>
<dd>{{.SysStatus.HeapObjects}}</dd>
<hr/>
<dt>Bootstrap Stack Usage</dt>
<dd>{{.SysStatus.StackInuse}}</dd>
<dt>Stack Memory Obtained</dt>
<dd>{{.SysStatus.StackSys}}</dd>
<dt>MSpan Structures Usage</dt>
<dd>{{.SysStatus.MSpanInuse}}</dd>
<dt>MSpan Structures Obtained</dt>
<dd>{{.SysStatus.HeapSys}}</dd>
<dt>MCache Structures Usage</dt>
<dd>{{.SysStatus.MCacheInuse}}</dd>
<dt>MCache Structures Obtained</dt>
<dd>{{.SysStatus.MCacheSys}}</dd>
<dt>Profiling Bucket Hash Table Obtained</dt>
<dd>{{.SysStatus.BuckHashSys}}</dd>
<dt>GC Metadada Obtained</dt>
<dd>{{.SysStatus.GCSys}}</dd>
<dt>Other System Allocation Obtained</dt>
<dd>{{.SysStatus.OtherSys}}</dd>
<hr/>
<dt>Next GC Recycle</dt>
<dd>{{.SysStatus.NextGC}}</dd>
<dt>Last GC Time</dt>
<dd>{{.SysStatus.LastGC}} ago</dd>
<dt>Total GC Pause</dt>
<dd>{{.SysStatus.PauseTotalNs}}</dd>
<dt>Last GC Pause</dt>
<dd>{{.SysStatus.PauseNs}}</dd>
<dt>GC Times</dt>
<dd>{{.SysStatus.NumGC}}</dd>
</dl>
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save