diff options
author | Unknown <joe2010xtmf@163.com> | 2014-06-19 01:08:03 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-06-19 01:08:03 -0400 |
commit | f147ad619a68440ef6c30d797a8217e687e8d51d (patch) | |
tree | 0f32ea8c645b514e47482d92b59de5a852306674 /templates/admin/monitor/process.tmpl | |
parent | 8d3276cab0bb554d63a38ddf3d065f247cf9b3d8 (diff) | |
download | gitea-f147ad619a68440ef6c30d797a8217e687e8d51d.tar.gz gitea-f147ad619a68440ef6c30d797a8217e687e8d51d.zip |
Basic process manager
Diffstat (limited to 'templates/admin/monitor/process.tmpl')
-rw-r--r-- | templates/admin/monitor/process.tmpl | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/templates/admin/monitor/process.tmpl b/templates/admin/monitor/process.tmpl new file mode 100644 index 0000000000..2d60ff6895 --- /dev/null +++ b/templates/admin/monitor/process.tmpl @@ -0,0 +1,38 @@ +{{template "base/head" .}} +{{template "base/navbar" .}} +<div id="body" class="container" data-page="admin"> + {{template "admin/nav" .}} + <div id="admin-container" class="col-md-10"> + <ul class="nav nav-tabs"> + <li{{if .PageIsMonitorCron}} class="active"{{end}}><a href="/admin/monitor">Cron Tasks</a></li> + <li{{if .PageIsMonitorProcess}} class="active"{{end}}><a href="/admin/monitor?tab=process">Processes</a></li> + </ul> + <div class="panel panel-default"> + <div class="panel-body"> + {{if .PageIsMonitorProcess}} + <table class="table table-striped"> + <thead> + <tr> + <th>Pid</th> + <th>Description</th> + <th>Start Time</th> + <th>Execution Time</th> + </tr> + </thead> + <tbody> + {{range .Processes}} + <tr> + <td>{{.Pid}}</td> + <td>{{.Description}}</td> + <td>{{.Start}}</td> + <td>{{TimeSince .Start}}</td> + </tr> + {{end}} + </tbody> + </table> + {{end}} + </div> + </div> + </div> +</div> +{{template "base/footer" .}}
\ No newline at end of file |