~cmars/hockeypuck/master

« back to all changes in this revision

Viewing changes to instroot/var/lib/hockeypuck/www/templates/pks/status.tmpl

  • Committer: Casey Marshall
  • Date: 2012-12-04 03:22:21 UTC
  • Revision ID: git-v1:bd158e13017b27f98633caf2b10918c5e623543b
* === added directory instroot, ... scripts/crossbuild.sh:
  - Relocate static system installed files to instroot.
  - Added cross-compilation script. LP: #1086192

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{{define "title"}}Hockeypuck | Server Status{{end}}
 
2
 
 
3
{{define "page_content"}}
 
4
<h2>Server Status</h2>
 
5
<table>
 
6
<tr><th>Hostname:</th><td>{{.Hostname}}</td></tr>
 
7
<tr><th>Port:</th><td>{{.Port}}</td></tr>
 
8
<tr><th>Version:</th><td>{{.Version}}</td></tr>
 
9
</table>
 
10
{{if .PksPeers}}
 
11
<h2>Outgoing Mailsync Peers</h2>
 
12
<table>
 
13
<tr><th>Email Address</th><th>Last Synchronized</th></tr>
 
14
{{range .PksPeers}}
 
15
<tr><td>{{.Addr}}</td><td>{{timef .LastSync}}</td></tr>
 
16
{{end}}
 
17
</table>
 
18
{{end}}
 
19
<h2>Statistics</h2>
 
20
<table>
 
21
<tr><th>Total number of keys:</th><td>{{.TotalKeys}}</td></tr>
 
22
</table>
 
23
{{if .KeyStatsHourly}}
 
24
<h3>Keys loaded in the last 24 hours</h3>
 
25
<table>
 
26
<tr><th>Hour</th><th>New</th><th>Updated</th></tr>
 
27
{{range .KeyStatsHourly}}
 
28
<tr><td>{{.Hour}}</td><td>{{.Created}}</td><td>{{.Modified}}</td></tr>
 
29
{{end}}
 
30
</table>
 
31
{{end}}
 
32
{{if .KeyStatsDaily}}
 
33
<h3>Keys loaded in the last 7 days</h3>
 
34
<table>
 
35
<tr><th>Day</th><th>New</th><th>Updated</th></tr>
 
36
{{range .KeyStatsDaily}}
 
37
<tr><td>{{.Day}}</td><td>{{.Created}}</td><td>{{.Modified}}</td></tr>
 
38
{{end}}
 
39
</table>
 
40
{{end}}
 
41
{{end}}