Building stats pages

Hopefully fixed an issue with user stats too
This commit is contained in:
2015-10-30 09:33:18 -05:00
parent fff9cb42e9
commit 1f5eae33b9
4 changed files with 45 additions and 23 deletions

View File

@@ -1,10 +1,21 @@
<div>
devICT Slack Statistics!
devICT Slack!
</div>
<div>
<table>
{{ for $k, $v := range .TemplateData.Stats }}
<tr><td>{{ $k }}</td><td>{{ $v }}</td></tr>
{{ end }}
{{ .TemplateData.Error }}
</div>
<div>
<table class="pure-table">
<thead>
<tr>
<th colspan="2">Statistics</th>
</tr>
</thead>
<tbody>
<tr>
<td>Total Channel Messages</td>
<td>{{ .TemplateData.TotalChannelMessages }}</td>
</tr>
</tbody>
</table>
</div>