mirror of https://github.com/gogits/gogs.git
Unknwon
9 years ago
9 changed files with 194 additions and 142 deletions
File diff suppressed because one or more lines are too long
@ -0,0 +1,18 @@ |
|||||||
|
.admin { |
||||||
|
padding-top: 15px; |
||||||
|
padding-bottom: @footer-margin * 3; |
||||||
|
|
||||||
|
.table.segment { |
||||||
|
padding: 0; |
||||||
|
font-size: 13px; |
||||||
|
th { |
||||||
|
padding-top: 5px; |
||||||
|
padding-bottom: 5px; |
||||||
|
} |
||||||
|
th, td { |
||||||
|
&:first-child { |
||||||
|
padding-left: 15px; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -1,74 +1,65 @@ |
|||||||
{{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.monitor.cron"}} |
||||||
<div id="setting-content"> |
</h4> |
||||||
<div class="panel panel-radius"> |
<div class="ui attached table segment"> |
||||||
<div class="panel-header"> |
<table class="ui very basic striped table"> |
||||||
<strong>{{.i18n.Tr "admin.monitor.cron"}}</strong> |
<thead> |
||||||
</div> |
<tr> |
||||||
<div class="panel-body admin-panel"> |
<th>{{.i18n.Tr "admin.monitor.name"}}</th> |
||||||
<table class="table table-striped"> |
<th>{{.i18n.Tr "admin.monitor.schedule"}}</th> |
||||||
<thead> |
<th>{{.i18n.Tr "admin.monitor.next"}}</th> |
||||||
<tr> |
<th>{{.i18n.Tr "admin.monitor.previous"}}</th> |
||||||
<th>{{.i18n.Tr "admin.monitor.name"}}</th> |
<th>{{.i18n.Tr "admin.monitor.execute_times"}}</th> |
||||||
<th>{{.i18n.Tr "admin.monitor.schedule"}}</th> |
</tr> |
||||||
<th>{{.i18n.Tr "admin.monitor.next"}}</th> |
</thead> |
||||||
<th>{{.i18n.Tr "admin.monitor.previous"}}</th> |
<tbody> |
||||||
<th>{{.i18n.Tr "admin.monitor.execute_times"}}</th> |
{{range .Entries}} |
||||||
</tr> |
<tr> |
||||||
</thead> |
<td>{{.Description}}</td> |
||||||
<tbody> |
<td>{{.Spec}}</td> |
||||||
{{range .Entries}} |
<td>{{DateFmtLong .Next}}</td> |
||||||
<tr> |
<td>{{if gt .Prev.Year 1 }}{{DateFmtLong .Prev}}{{else}}N/A{{end}}</td> |
||||||
<td>{{.Description}}</td> |
<td>{{.ExecTimes}}</td> |
||||||
<td>{{.Spec}}</td> |
</tr> |
||||||
<td>{{.Next}}</td> |
{{end}} |
||||||
<td>{{.Prev}}</td> |
</tbody> |
||||||
<td>{{.ExecTimes}}</td> |
</table> |
||||||
</tr> |
|
||||||
{{end}} |
|
||||||
</tbody> |
|
||||||
</table> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<br> |
|
||||||
<div class="panel panel-radius"> |
|
||||||
<div class="panel-header"> |
|
||||||
<strong>{{.i18n.Tr "admin.monitor.process"}}</strong> |
|
||||||
</div> |
|
||||||
<div class="panel-body admin-panel"> |
|
||||||
<table class="table table-striped"> |
|
||||||
<thead> |
|
||||||
<tr> |
|
||||||
<th>Pid</th> |
|
||||||
<th>{{.i18n.Tr "admin.monitor.desc"}}</th> |
|
||||||
<th>{{.i18n.Tr "admin.monitor.start"}}</th> |
|
||||||
<th>{{.i18n.Tr "admin.monitor.execute_time"}}</th> |
|
||||||
</tr> |
|
||||||
</thead> |
|
||||||
<tbody> |
|
||||||
{{range .Processes}} |
|
||||||
<tr> |
|
||||||
<td>{{.Pid}}</td> |
|
||||||
<td>{{.Description}}</td> |
|
||||||
<td>{{.Start}}</td> |
|
||||||
<td>{{TimeSince .Start $.Lang}}</td> |
|
||||||
</tr> |
|
||||||
{{end}} |
|
||||||
</tbody> |
|
||||||
</table> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
</div> |
||||||
|
|
||||||
|
<h4 class="ui top attached header"> |
||||||
|
{{.i18n.Tr "admin.monitor.process"}} |
||||||
|
</h4> |
||||||
|
<div class="ui attached table segment"> |
||||||
|
<table class="ui very basic striped table"> |
||||||
|
<thead> |
||||||
|
<tr> |
||||||
|
<th>Pid</th> |
||||||
|
<th>{{.i18n.Tr "admin.monitor.desc"}}</th> |
||||||
|
<th>{{.i18n.Tr "admin.monitor.start"}}</th> |
||||||
|
<th>{{.i18n.Tr "admin.monitor.execute_time"}}</th> |
||||||
|
</tr> |
||||||
|
</thead> |
||||||
|
<tbody> |
||||||
|
{{range .Processes}} |
||||||
|
<tr> |
||||||
|
<td>{{.Pid}}</td> |
||||||
|
<td>{{.Description}}</td> |
||||||
|
<td>{{DateFmtLong .Start}}</td> |
||||||
|
<td>{{TimeSince .Start $.Lang}}</td> |
||||||
|
</tr> |
||||||
|
{{end}} |
||||||
|
</tbody> |
||||||
|
</table> |
||||||
|
</div> |
||||||
|
</div> |
||||||
</div> |
</div> |
||||||
|
</div> |
||||||
</div> |
</div> |
||||||
{{template "ng/base/footer" .}} |
{{template "base/footer" .}} |
@ -0,0 +1,29 @@ |
|||||||
|
<div class="four wide column"> |
||||||
|
<div class="ui vertical menu"> |
||||||
|
<div class="header item">{{.i18n.Tr "admin_panel"}}</div> |
||||||
|
<a class="{{if .PageIsAdminDashboard}}active{{end}} item" href="{{AppSubUrl}}/admin"> |
||||||
|
{{.i18n.Tr "admin.dashboard"}} |
||||||
|
</a> |
||||||
|
<a class="{{if .PageIsAdminUsers}}active{{end}} item" href="{{AppSubUrl}}/admin/users"> |
||||||
|
{{.i18n.Tr "admin.users"}} |
||||||
|
</a> |
||||||
|
<a class="{{if .PageIsAdminOrganizations}}active{{end}} item" href="{{AppSubUrl}}/admin/orgs"> |
||||||
|
{{.i18n.Tr "admin.organizations"}} |
||||||
|
</a> |
||||||
|
<a class="{{if .PageIsAdminRepositories}}active{{end}} item" href="{{AppSubUrl}}/admin/repos"> |
||||||
|
{{.i18n.Tr "admin.repositories"}} |
||||||
|
</a> |
||||||
|
<a class="{{if .PageIsAdminAuthentications}}active{{end}} item" href="{{AppSubUrl}}/admin/auths"> |
||||||
|
{{.i18n.Tr "admin.authentication"}} |
||||||
|
</a> |
||||||
|
<a class="{{if .PageIsAdminConfig}}active{{end}} item" href="{{AppSubUrl}}/admin/config"> |
||||||
|
{{.i18n.Tr "admin.config"}} |
||||||
|
</a> |
||||||
|
<a class="{{if .PageIsAdminNotices}}active{{end}} item" href="{{AppSubUrl}}/admin/notices"> |
||||||
|
{{.i18n.Tr "admin.notices"}} |
||||||
|
</a> |
||||||
|
<a class="{{if .PageIsAdminMonitor}}active{{end}} item" href="{{AppSubUrl}}/admin/monitor"> |
||||||
|
{{.i18n.Tr "admin.monitor"}} |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
</div> |
Loading…
Reference in new issue