aboutsummaryrefslogtreecommitdiff
path: root/tmpl
diff options
context:
space:
mode:
authorFelix Hanley <felix@userspace.com.au>2020-04-07 03:32:09 +0000
committerFelix Hanley <felix@userspace.com.au>2020-04-07 03:32:09 +0000
commitd249175eed66c382ea71372ccaa683c9a9cc4f68 (patch)
treea0a7ccead4b39835b9d4c49e4f415c6daf5ded6d /tmpl
parentec84e5226503f4c1a4ec8658f9db52abf9674c99 (diff)
downloadsws-d249175eed66c382ea71372ccaa683c9a9cc4f68.tar.gz
sws-d249175eed66c382ea71372ccaa683c9a9cc4f68.tar.bz2
Add filter by referrer
Diffstat (limited to 'tmpl')
-rw-r--r--tmpl/hitView.tmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/tmpl/hitView.tmpl b/tmpl/hitView.tmpl
index 6e7b5c8..cb05929 100644
--- a/tmpl/hitView.tmpl
+++ b/tmpl/hitView.tmpl
@@ -86,7 +86,9 @@
<table class="table is-striped is-fullwidth details details--referrers">
{{ range .ReferrerSet }}
<tr>
- <td class="details__name">{{ .Name }}</td>
+ <td class="details__name">
+ <a href="/sites/{{ $siteID }}?{{ $payload.QuerySetEncode "referrer" .Name }}">{{ .Name }}</a>
+ </td>
<td class="details__count"><span class="details__percent has-text-right">{{ percent .Count $sum | round 1 }}%</span>&nbsp;({{ .Count }})</td>
</tr>
{{ end }}