Small bug fixes

This commit is contained in:
R. Miles McCain
2020-04-14 17:33:57 -04:00
parent 6d542e81e5
commit d84ed28ef7
6 changed files with 8 additions and 8 deletions

View File

@@ -80,7 +80,7 @@
<tbody>
{% for location in stats.locations %}
<tr>
<td>{{location.location|urldisplay}}</td>
<td>{{location.location|default:"Unknown"|urldisplay}}</td>
<td class="rf">{{location.count|intcomma}}</td>
</tr>
{% endfor %}

View File

@@ -73,7 +73,7 @@
</div>
<div class="md:flex card ~neutral !low flex-grow justify-between">
<div class="mb-4 md:mb-0 md:w-1/2">
<p class="label font-medium text-lg">{{hit.location|urlize}}</p>
<p class="label font-medium text-lg">{{hit.location|default:"Unknown"|urlize}}</p>
{% if hit.referrer %}
<p>via {{hit.referrer|urlize}}<p>
{% endif %}

View File

@@ -14,8 +14,8 @@
<p>Place the following snippet at the end of the <code>&lt;body&gt;</code> tag on any page you'd like to track.</p>
<div class="card ~neutral !high font-mono text-sm">
{% filter force_escape %}<noscript><img
src="{{base_url}}/ingress/fc4008d3-f2fa-4500-9968-d96719e3819c/pixel.gif"></noscript>
<script src="{{base_url}}/ingress/fc4008d3-f2fa-4500-9968-d96719e3819c/identifier/script.js"></script>
src="//{{request.site.domain}}/ingress/{{object.uuid}}/pixel.gif"></noscript>
<script src="//{{request.site.domain}}/ingress/{{object.uuid}}/identifier/script.js"></script>
{% endfilter %}
</div>
<hr class="sep h-4">