Browse Source

Update front-end for visitor tracking

pull/2/head
Noah Petherbridge 7 years ago
parent
commit
201797252e
  1. 12
      www/layout.html
  2. 20
      www/solar/ui.css

12
www/layout.html

@ -180,6 +180,18 @@
</form>
</div>
<div class="k-section">Visitors</div>
<ul>
<li>&#0164; <strong>Unique Visits:</strong><br>
Today: {{ tracking["unique_today"] }}<br>
Total: {{ tracking["unique_total"] }}</li>
<li>&#0164; <strong>Total Hits:</strong><br>
Today: {{ tracking["hits_today"] }}<br>
Total: {{ tracking["hits_total"] }}</li>
<li>&#0164; <a href="{{ url_for('tracking.visitors') }}">Visitor Details</a></li>
<li>&#0164; <a href="{{ url_for('tracking.referrers') }}">Referring URLs</a></li>
</ul>
<div class="center">
<a href="https://www.python.org/" target="_blank">
<img src="/static/images/python.png" width="80" height="15" alt="Python powered">

20
www/solar/ui.css

@ -392,6 +392,26 @@ ul.blog-categories li:last-child:after {
padding: 5px
}
/********************
* Visitor Tracking *
********************/
.visitor-graph {
height: 16px;
width: 100%;
border: 1px outset;
}
.visitor-graph.unique {
background-color: #0099FF;
background-image: url("/static/images/blue-clearlooks.png");
border-color: #0099FF;
}
.visitor-graph.hits {
background-color: #FF99FF;
background-image: url("/static/images/pink-clearlooks.png");
border-color: #FF99FF;
}
/*******************************************************************************
* Supernova Website Design Classes - Copyright 2009 Casey Kirsle - Kirsle.com *
******************************************************************************/

Loading…
Cancel
Save