A Python content management system designed for kirsle.net featuring a blog, comments and photo albums. https://rophako.kirsle.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.1 KiB

{% extends "layout.html" %}
{% block title %}Referring URLs{% endblock %}
{% block content %}
<h1>Referring URLs</h1>
This table lists the HTTP referrers to this site, in order of popularity. For
the most recent 25 links, see <a href="#recent">the end of this page</a>.<p>
<div style="height: 450px; overflow: auto">
<table class="table" width="100%">
<th width="40">Hits</th>
{% for link in referrers["referrers"] %}
{% if link %}
<td align="center" valign="top">
{{ link[1] }}
<td align="left" valign="top" style="position: relative">
{{ link[0]|safe }}
{% endif %}
{% endfor %}
<h2 id="recent">25 Most Recent Links</h2>
{% for item in referrers["recent"] %}
<li>{{ item }}</li>
{% endfor %}
{% endblock %}