summaryrefslogtreecommitdiffstats
path: root/templates/admin/monitor/process.tmpl
blob: 2d60ff6895138ee8ad71ff009062e3583ad71159 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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" .}}