some refactoring, added Package manager for removing code duplicates, added helpers module, basic tests layout
This commit is contained in:
51
euscanwww/djeuscan/templates/euscan/herd.html
Normal file
51
euscanwww/djeuscan/templates/euscan/herd.html
Normal file
@ -0,0 +1,51 @@
|
||||
{% extends "euscan/_datatable.html" %}
|
||||
|
||||
{% load packages %}
|
||||
|
||||
{% block title %}
|
||||
{{ block.super }} - Herd: {{ herd.herd }}
|
||||
{% endblock %}
|
||||
|
||||
{% block menu_feed %}
|
||||
{{ block.super }}
|
||||
<li>
|
||||
<img src="{{ STATIC_URL }}/img/feed.png" alt="feed" />
|
||||
<a title="{{ herd.herd }} Feed" href="{% url herd_feed herd.herd %}">{{ herd.herd }}</a>
|
||||
</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Herd: {{ herd.herd }}</h2>
|
||||
{% packages packages %}
|
||||
|
||||
<h3>Statistics</h2>
|
||||
<h4>Current statistics</h4>
|
||||
<p>
|
||||
<img src="{% url djeuscan.views.chart_herd herd.herd 'pie-versions' %}" />
|
||||
<img src="{% url djeuscan.views.chart_herd herd.herd 'pie-packages' %}" />
|
||||
</p>
|
||||
|
||||
<h4>All Time</h4>
|
||||
<p>
|
||||
<img src="{% url djeuscan.views.chart_herd herd.herd 'versions-weekly' %}" />
|
||||
<img src="{% url djeuscan.views.chart_herd herd.herd 'versions-monthly' %}" />
|
||||
<p>
|
||||
</p>
|
||||
<img src="{% url djeuscan.views.chart_herd herd.herd 'packages-weekly' %}" />
|
||||
<img src="{% url djeuscan.views.chart_herd herd.herd 'packages-monthly' %}" />
|
||||
</p>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block menus %}
|
||||
{{ block.super }}
|
||||
<div class="menu">
|
||||
<dl>
|
||||
<dt>Versions</dt>
|
||||
<dd><img src="{% url djeuscan.views.chart_herd herd.herd 'versions-monthly-small' %}" /></dd>
|
||||
<dt>Packages</dt>
|
||||
<dd><img src="{% url djeuscan.views.chart_herd herd.herd 'packages-monthly-small' %}" /></dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
Reference in New Issue
Block a user