9f5402f896
* Now is more DRY, the JS code and the HTML code are in one place * It works even without JS Signed-off-by: volpino <fox91@anche.no>
66 lines
1.9 KiB
HTML
66 lines
1.9 KiB
HTML
{% extends "euscan/_datatable.html" %}
|
|
|
|
{% load url from future %}
|
|
{% load djeuscan_helpers %}
|
|
{% load euscan_accounts_helpers %}
|
|
|
|
{% block title %}
|
|
{{ block.super }} - Maintainer: {{ maintainer.name }}
|
|
{% endblock %}
|
|
|
|
{% block menu_feed %}
|
|
{{ block.super }}
|
|
<li>
|
|
<img src="{{ STATIC_URL }}/img/feed.png" alt="feed" />
|
|
<a title="{{ maintainer.name }} Feed" href="{% url "maintainer_feed" maintainer.email %}">
|
|
{{ maintainer.name|truncatechars:15 }}
|
|
</a>
|
|
</li>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<h2>
|
|
Maintainer: {{ maintainer.name }} <{{ maintainer.email }}>
|
|
{% if user.is_authenticated %}
|
|
<span class="pull-right padding-bottom10">
|
|
{% favourite_buttons "maintainer" maintainer.email %}
|
|
</span>
|
|
{% endif %}
|
|
</h2>
|
|
|
|
{% packages packages %}
|
|
|
|
<h3>Statistics</h3>
|
|
<h4>Current statistics</h4>
|
|
<p>
|
|
<img alt="pie versions" src="{% url "chart_maintainer" maintainer.email 'pie-versions' %}" />
|
|
<img alt="pie packages" src="{% url "chart_maintainer" maintainer.email 'pie-packages' %}" />
|
|
</p>
|
|
|
|
<h4>All Time</h4>
|
|
<p>
|
|
<img alt="version weekly" src="{% url "chart_maintainer" maintainer.email 'versions-weekly' %}" />
|
|
<img alt="versions monthly" src="{% url "chart_maintainer" maintainer.email 'versions-monthly' %}" />
|
|
</p>
|
|
|
|
<p>
|
|
<img alt="packages weekly" src="{% url "chart_maintainer" maintainer.email 'packages-weekly' %}" />
|
|
<img alt="packages monthly" src="{% url "chart_maintainer" maintainer.email 'packages-monthly' %}" />
|
|
</p>
|
|
|
|
<script src="{{ STATIC_URL }}js/favourite.js" type="text/javascript"></script>
|
|
{% endblock %}
|
|
|
|
{% block menus %}
|
|
{{ block.super }}
|
|
<div class="menu rounded notfirst-menu">
|
|
<dl>
|
|
<dt>Versions</dt>
|
|
<dd><img alt="versions" src="{% url "chart_maintainer" maintainer.email 'versions-monthly-small' %}" /></dd>
|
|
<dt>Packages</dt>
|
|
<dd><img alt="packages" src="{% url "chart_maintainer" maintainer.email 'packages-monthly-small' %}" /></dd>
|
|
</dl>
|
|
</div>
|
|
|
|
{% endblock %}
|