943ef2e8e4
This moves our site static files into the sitestatic directory if they are shared resources, and also moves a handful of things (such as the artwork logos) into application-specific static/ directories. This allows the staticfiles contrib app to work after a few settings tweaks, a run of collectstatic, and massaging the hardcoded '/media/' prefix out of our templates. Django 1.4 is going to make this a lot easier to move things to a CDN and provides better template tags; for now this is setting the stage before we can move to that. Signed-off-by: Dan McGee <dan@archlinux.org>
63 lines
2.2 KiB
HTML
63 lines
2.2 KiB
HTML
{% extends "base.html" %}
|
|
{% load attributes %}
|
|
{% load package_extras %}
|
|
|
|
{% block title %}Arch Linux - {{ title }}{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="box">
|
|
<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>
|
|
<table class="results">
|
|
<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 %}
|
|
<tr class="{% cycle pkgr2,pkgr1 %}">
|
|
<td>{{ pkg.arch.name }}</td>
|
|
<td>{{ pkg.repo.name|capfirst }}</td>
|
|
<td>{% pkg_details_link pkg %}</td>
|
|
{% 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>
|
|
{% load cdn %}{% jquery %}
|
|
<script type="text/javascript" src="{{ STATIC_URL }}jquery.tablesorter.min.js"></script>
|
|
<script type="text/javascript" src="{{ STATIC_URL }}archweb.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$(".results").tablesorter({widgets: ['zebra']});
|
|
});
|
|
</script>
|
|
{% endblock %}
|