diff options
author | 2020-12-08 03:36:41 +0100 | |
---|---|---|
committer | 2020-12-08 03:36:41 +0100 | |
commit | f1498d3f324bd2b02cc69ff3459baad74fb648b2 (patch) | |
tree | 2a6483d753c2b4f881f9e45478afafcb5f220504 | |
parent | Fix the builder docker image (diff) | |
download | go-gentoo-f1498d3f324bd2b02cc69ff3459baad74fb648b2.tar.gz go-gentoo-f1498d3f324bd2b02cc69ff3459baad74fb648b2.tar.bz2 go-gentoo-f1498d3f324bd2b02cc69ff3459baad74fb648b2.zip |
Add the missing Hits column to the admin panel
Signed-off-by: Max Magorsch <arzano@gentoo.org>
-rw-r--r-- | web/templates/admin/show.tmpl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/web/templates/admin/show.tmpl b/web/templates/admin/show.tmpl index 2dbbb78..15646f9 100644 --- a/web/templates/admin/show.tmpl +++ b/web/templates/admin/show.tmpl @@ -54,7 +54,7 @@ {{end}} {{if $empty}} <tr> - <td colspan="4" class="text-center"><i>No shortened URLs yet</i></td> + <td colspan="5" class="text-center"><i>No shortened URLs yet</i></td> </tr> {{end}} </tbody> @@ -67,15 +67,17 @@ <table class="table"> <colgroup> <col span="1" style="width: 20%;"> - <col span="1" style="width: 65%;"> + <col span="1" style="width: 60%;"> <col span="1" style="width: 10%;"> <col span="1" style="width: 5%;"> + <col span="1" style="width: 5%;"> </colgroup> <thead> <tr> <th scope="col">Short URL</th> <th scope="col">Target</th> <th scope="col">Creator</th> + <th scope="col">Hits</th> <th scope="col">Action</th> </tr> </thead> @@ -88,6 +90,7 @@ <th scope="row"><a class="text-dark" href="{{.ShortLink}}">go.gentoo.org{{.ShortLink}}</a></th> <td><a class="text-dark" href="{{.TargetLink}}">{{.TargetLink}}</a></td> <td>{{replaceAll .UserEmail "@gentoo.org" ""}}</td> + <td>{{.Hits}}</td> <td> <form action="/links/delete" method="post"> <input hidden name="prefix" value="{{.Prefix}}"> @@ -103,7 +106,7 @@ {{end}} {{if $empty}} <tr> - <td colspan="4" class="text-center"><i>No shortened URLs yet</i></td> + <td colspan="5" class="text-center"><i>No shortened URLs yet</i></td> </tr> {{end}} </tbody> |