You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.9 KiB
HTML
69 lines
1.9 KiB
HTML
{% extends "admin/base_site.html" %}
|
|
{% load i18n static %}
|
|
|
|
{% block extrastyle %}{{ block.super }}
|
|
<link rel="stylesheet" type="text/css" href="{% static "admin/css/dashboard.css" %}" />
|
|
{% endblock %}
|
|
|
|
{% block coltype %}{% endblock %}
|
|
|
|
{% block bodyclass %}{{ block.super }} dashboard{% endblock %}
|
|
|
|
{% block breadcrumbs %}
|
|
<div class="breadcrumbs">
|
|
<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
|
|
› <a href="{% url 'admin_ref' %}">{% trans 'Status' %}</a>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div id="content-main">
|
|
<div class="module half-module">
|
|
<table>
|
|
<caption>
|
|
<a href="{% url 'admin_ref' %}" class="section">{% trans 'Top Referrers (week)' %}</a>
|
|
</caption>
|
|
{% for r in top_ref_week %}
|
|
<tr>
|
|
<th><a href="{% url 'admin:auth_user_change' r.id %}">{{r.username}}</a></th>
|
|
<th style="width: auto">{{r.n_ref}}</th>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
|
|
<div class="module half-module">
|
|
<table>
|
|
<caption>
|
|
<a href="{% url 'admin_ref' %}" class="section">{% trans 'Top Referrers (month)' %}</a>
|
|
</caption>
|
|
{% for r in top_ref_month %}
|
|
<tr>
|
|
<th><a href="{% url 'admin:auth_user_change' r.id %}">{{r.username}}</a></th>
|
|
<th style="width: auto">{{r.n_ref}}</th>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
|
|
<div class="module half-module">
|
|
<table>
|
|
<caption>
|
|
<a href="{% url 'admin_ref' %}" class="section">{% trans 'Top Referrers (all time)' %}</a>
|
|
</caption>
|
|
{% for r in top_ref %}
|
|
<tr>
|
|
<th><a href="{% url 'admin:auth_user_change' r.id %}">{{r.username}}</a></th>
|
|
<th style="width: auto">{{r.n_ref}}</th>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
{% block sidebar %}
|
|
{% endblock %}
|
|
|