2011-04-15 19:28:37 +02:00
|
|
|
{% extends "euscan/_datatable.html" %}
|
|
|
|
|
2012-07-20 09:04:15 +02:00
|
|
|
{% load djeuscan_helpers %}
|
2012-05-06 20:27:14 +02:00
|
|
|
{% load url from future %}
|
2011-04-15 19:28:37 +02:00
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
{{ block.super }} - Maintainer: {{ maintainer.name }}
|
|
|
|
{% endblock %}
|
|
|
|
|
2011-08-25 15:39:54 +02:00
|
|
|
{% block menu_feed %}
|
|
|
|
{{ block.super }}
|
|
|
|
<li>
|
2012-04-04 14:33:40 +02:00
|
|
|
<img src="{{ STATIC_URL }}/img/feed.png" alt="feed" />
|
2012-05-06 20:27:14 +02:00
|
|
|
<a title="{{ maintainer.name }} Feed" href="{% url "maintainer_feed" maintainer.id %}">
|
|
|
|
{{ maintainer.name }}
|
|
|
|
</a>
|
2011-08-25 15:39:54 +02:00
|
|
|
</li>
|
|
|
|
{% endblock %}
|
|
|
|
|
2011-04-15 19:28:37 +02:00
|
|
|
{% block content %}
|
2012-07-10 16:15:06 +02:00
|
|
|
<h2>
|
|
|
|
Maintainer: {{ maintainer.name }} <{{ maintainer.email }}>
|
|
|
|
{% if user.is_authenticated %}
|
2012-07-20 17:20:18 +02:00
|
|
|
<span class="pull-right">
|
|
|
|
<button class="btn favourite-button {% if favourited %}hide{% endif %}" data-url="{% url "favourite_maintainer" maintainer.id %}">
|
|
|
|
<img src="{{ STATIC_URL}}/img/watch-icon.png" alt="Watch" >
|
|
|
|
</button>
|
|
|
|
<button class="btn unfavourite-button {% if not favourited %}hide{% endif %}" data-url="{% url "unfavourite_maintainer" maintainer.id %}">
|
|
|
|
<img src="{{ STATIC_URL}}/img/unwatch-icon.png" alt="Unwatch" >
|
|
|
|
</button>
|
|
|
|
</span>
|
2012-07-10 16:15:06 +02:00
|
|
|
{% endif %}
|
|
|
|
</h2>
|
2012-07-20 17:20:18 +02:00
|
|
|
|
2011-04-15 19:28:37 +02:00
|
|
|
{% packages packages %}
|
2011-04-25 22:27:32 +02:00
|
|
|
|
|
|
|
<h3>Statistics</h2>
|
|
|
|
<h4>Current statistics</h4>
|
2012-03-05 11:27:53 +01:00
|
|
|
<p>
|
2012-05-06 20:27:14 +02:00
|
|
|
<img src="{% url "chart_maintainer" maintainer.id 'pie-versions' %}" />
|
|
|
|
<img src="{% url "chart_maintainer" maintainer.id 'pie-packages' %}" />
|
2012-03-05 11:27:53 +01:00
|
|
|
</p>
|
2011-04-25 22:27:32 +02:00
|
|
|
|
2011-05-03 08:19:01 +02:00
|
|
|
<h4>All Time</h4>
|
2012-03-05 11:27:53 +01:00
|
|
|
<p>
|
2012-05-06 20:27:14 +02:00
|
|
|
<img src="{% url "chart_maintainer" maintainer.id 'versions-weekly' %}" />
|
|
|
|
<img src="{% url "chart_maintainer" maintainer.id 'versions-monthly' %}" />
|
2012-03-05 11:27:53 +01:00
|
|
|
</p>
|
2011-05-03 08:19:01 +02:00
|
|
|
|
2012-03-05 11:27:53 +01:00
|
|
|
<p>
|
2012-05-06 20:27:14 +02:00
|
|
|
<img src="{% url "chart_maintainer" maintainer.id 'packages-weekly' %}" />
|
|
|
|
<img src="{% url "chart_maintainer" maintainer.id 'packages-monthly' %}" />
|
2012-03-05 11:27:53 +01:00
|
|
|
</p>
|
2012-07-10 16:15:06 +02:00
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(".favourite-button").click(function() {
|
|
|
|
$.post($(this).data("url"), function() {
|
|
|
|
$(".unfavourite-button").removeClass("hide");
|
|
|
|
$(".favourite-button").addClass("hide");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
$(".unfavourite-button").click(function() {
|
|
|
|
$.post($(this).data("url"), function() {
|
|
|
|
$(".favourite-button").removeClass("hide");
|
|
|
|
$(".unfavourite-button").addClass("hide");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2011-04-15 19:28:37 +02:00
|
|
|
{% endblock %}
|
2012-03-05 11:27:53 +01:00
|
|
|
|
|
|
|
{% block menus %}
|
|
|
|
{{ block.super }}
|
2012-07-10 16:15:06 +02:00
|
|
|
<div class="menu rounded notfirst-menu">
|
2012-03-05 11:27:53 +01:00
|
|
|
<dl>
|
|
|
|
<dt>Versions</dt>
|
2012-05-06 20:27:14 +02:00
|
|
|
<dd><img src="{% url "chart_maintainer" maintainer.id 'versions-monthly-small' %}" /></dd>
|
2012-03-05 11:27:53 +01:00
|
|
|
<dt>Packages</dt>
|
2012-05-06 20:27:14 +02:00
|
|
|
<dd><img src="{% url "chart_maintainer" maintainer.id 'packages-monthly-small' %}" /></dd>
|
2012-04-28 18:29:21 +02:00
|
|
|
</dl>
|
2012-03-05 11:27:53 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|