2011-04-15 19:28:37 +02:00
|
|
|
{% extends "euscan/_datatable.html" %}
|
|
|
|
|
2012-06-14 10:03:49 +02:00
|
|
|
{% load euscan %}
|
2012-05-06 20:27:14 +02:00
|
|
|
{% load url from future %}
|
2011-04-15 19:28:37 +02:00
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
{{ block.super }} - Herd: {{ herd.herd }}
|
|
|
|
{% 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="{{ herd.herd }} Feed" href="{% url "herd_feed" herd.herd %}">{{ herd.herd }}</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>
|
|
|
|
Herd: {{ herd.herd }}
|
|
|
|
{% if user.is_authenticated %}
|
|
|
|
<button class="btn favourite-button {% if favourited %}hide{% endif %}" data-url="{% url "favourite_herd" herd.herd %}">
|
|
|
|
Watch
|
|
|
|
</button>
|
|
|
|
<button class="btn unfavourite-button {% if not favourited %}hide{% endif %}" data-url="{% url "unfavourite_herd" herd.herd %}">
|
|
|
|
Unwatch
|
|
|
|
</button>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</h2>
|
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_herd" herd.herd 'pie-versions' %}" />
|
|
|
|
<img src="{% url "chart_herd" herd.herd 'pie-packages' %}" />
|
2012-03-05 11:27:53 +01:00
|
|
|
</p>
|
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_herd" herd.herd 'versions-weekly' %}" />
|
|
|
|
<img src="{% url "chart_herd" herd.herd 'versions-monthly' %}" />
|
2012-03-05 11:27:53 +01:00
|
|
|
<p>
|
|
|
|
</p>
|
2012-05-06 20:27:14 +02:00
|
|
|
<img src="{% url "chart_herd" herd.herd 'packages-weekly' %}" />
|
|
|
|
<img src="{% url "chart_herd" herd.herd '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>
|
|
|
|
|
2012-03-05 11:27:53 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% 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_herd" herd.herd '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_herd" herd.herd 'packages-monthly-small' %}" /></dd>
|
2012-04-28 18:29:21 +02:00
|
|
|
</dl>
|
2012-03-05 11:27:53 +01:00
|
|
|
</div>
|
2011-05-03 08:19:01 +02:00
|
|
|
|
2011-04-15 19:28:37 +02:00
|
|
|
{% endblock %}
|