2011-04-25 16:09:39 -07:00
|
|
|
{% extends "base.html" %}
|
2012-03-24 10:37:19 -07:00
|
|
|
{% load static from staticfiles %}
|
2011-04-25 16:09:39 -07:00
|
|
|
{% load attributes %}
|
2011-08-09 21:16:00 -07:00
|
|
|
{% load package_extras %}
|
2011-04-25 16:09:39 -07:00
|
|
|
|
|
|
|
{% block title %}Arch Linux - {{ title }}{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="box">
|
2011-06-29 09:14:56 -07:00
|
|
|
<h2>{{ title }}{% if maintainer %},
|
|
|
|
maintained by {{ maintainer.get_full_name }}{% endif%}</h2>
|
|
|
|
<p>{{ packages|length }} package{{ packages|pluralize }} found.
|
|
|
|
{% if maintainer %}This report only includes packages maintained by
|
|
|
|
{{ maintainer.get_full_name }} ({{ maintainer.username }}).{% endif %}
|
|
|
|
</p>
|
2012-09-15 07:14:36 -07:00
|
|
|
|
|
|
|
<div class="box filter-criteria">
|
|
|
|
<h3>Filter Packages</h3>
|
|
|
|
<form id="report_filter" method="post" action=".">
|
|
|
|
<fieldset>
|
|
|
|
<legend>Select filter criteria</legend>
|
|
|
|
{% for arch in arches %}
|
|
|
|
<div><label for="id_arch_{{ arch.name }}" title="Architecture {{ arch.name }}">Arch {{ arch.name }}</label>
|
|
|
|
<input type="checkbox" name="arch_{{ arch.name }}" id="id_arch_{{ arch.name }}" class="arch_filter" value="{{ arch.name }}" checked="checked"/></div>
|
|
|
|
{% endfor %}
|
|
|
|
{% for repo in repos %}
|
|
|
|
<div><label for="id_repo_{{ repo.name|lower }}" title="Target Repository {{ repo.name }}">[{{ repo.name|lower }}]</label>
|
|
|
|
<input type="checkbox" name="repo_{{ repo.name|lower }}" id="id_repo_{{ repo.name|lower }}" class="repo_filter" value="{{ repo.name|lower }}" checked="checked"/></div>
|
|
|
|
{% endfor %}
|
|
|
|
<div ><label> </label><input title="Reset search criteria" type="button" id="criteria_reset" value="Reset"/></div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
<div id="filter-info"><span id="filter-count">{{ packages|length }}</span> packages displayed.</div>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<table id="dev-report-results" class="results">
|
2011-04-25 16:09:39 -07:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Arch</th>
|
|
|
|
<th>Repo</th>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Version</th>
|
|
|
|
<th>Description</th>
|
|
|
|
<th>Last Updated</th>
|
|
|
|
<th>Build Date</th>
|
|
|
|
<th>Flag Date</th>
|
|
|
|
{% for name in column_names %}
|
|
|
|
<th>{{ name }}</th>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for pkg in packages %}
|
2012-09-15 07:14:36 -07:00
|
|
|
<tr class="{% cycle pkgr2,pkgr1 %} {{ pkg.arch.name }} {{ pkg.repo.name|lower }}">
|
2011-04-25 16:09:39 -07:00
|
|
|
<td>{{ pkg.arch.name }}</td>
|
|
|
|
<td>{{ pkg.repo.name|capfirst }}</td>
|
2011-08-09 21:16:00 -07:00
|
|
|
<td>{% pkg_details_link pkg %}</td>
|
2011-04-25 16:09:39 -07:00
|
|
|
{% if pkg.flag_date %}
|
|
|
|
<td><span class="flagged">{{ pkg.full_version }}</span></td>
|
|
|
|
{% else %}
|
|
|
|
<td>{{ pkg.full_version }}</td>
|
|
|
|
{% endif %}
|
|
|
|
<td class="wrap">{{ pkg.pkgdesc }}</td>
|
|
|
|
<td>{{ pkg.last_update|date }}</td>
|
|
|
|
<td>{{ pkg.build_date|date }}</td>
|
|
|
|
<td>{{ pkg.flag_date|date }}</td>
|
|
|
|
{% for attr in column_attrs %}
|
|
|
|
<td>{{ pkg|attribute:attr }}</td>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2012-07-08 21:30:48 -07:00
|
|
|
{% load cdn %}{% jquery %}{% jquery_tablesorter %}
|
2012-03-24 10:37:19 -07:00
|
|
|
<script type="text/javascript" src="{% static "archweb.js" %}"></script>
|
2011-04-25 16:09:39 -07:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function() {
|
|
|
|
$(".results").tablesorter({widgets: ['zebra']});
|
2012-12-11 08:02:26 -08:00
|
|
|
});
|
|
|
|
$(document).ready(function() {
|
|
|
|
var filter_func = function() { filter_pkgs_list('#report_filter', '#dev-report-results tbody'); };
|
2012-09-15 07:14:36 -07:00
|
|
|
$('#report_filter input').change(filter_func);
|
|
|
|
$('#criteria_reset').click(function() { filter_pkgs_reset(filter_func); });
|
|
|
|
// fire function on page load to ensure the current form selections take effect
|
|
|
|
filter_func();
|
2011-04-25 16:09:39 -07:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|