stats added
This commit is contained in:
@@ -13,9 +13,9 @@
|
||||
</article>
|
||||
<footer>
|
||||
<a href="/">⌂ notehub</a> ·
|
||||
<a href="{{.ID}}/stats">statistics</a> ·
|
||||
<a href="{{.ID}}/edit">edit</a> ·
|
||||
<a href="{{.ID}}/export">export</a> ·
|
||||
<a href="/{{.ID}}/stats">statistics</a> ·
|
||||
<a href="/{{.ID}}/edit">edit</a> ·
|
||||
<a href="/{{.ID}}/export">export</a> ·
|
||||
<a href="/TOS.md">terms of service</a>
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{{define "Stats"}}
|
||||
<h2>Statistics</h2>
|
||||
<table>
|
||||
<tr><td>Published</td><td>{{.Published}}</td></tr>
|
||||
<tr><td>Edited</td><td>{{.Edited}}</td></tr>
|
||||
<tr><td>Views</td><td>{{.Views}}</td></tr>
|
||||
</table>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user