urls from future in templates

This commit is contained in:
volpino
2012-05-06 20:27:14 +02:00
parent 948c5b8c39
commit 23f43e869a
15 changed files with 132 additions and 103 deletions

View File

@ -1,6 +1,7 @@
{% extends "euscan/_datatable.html" %}
{% load packages %}
{% load url from future %}
{% block title %}
{{ block.super }} - categories
@ -24,14 +25,14 @@
{% for category in categories %}
<tr>
<td>
<a href="{% url djeuscan.views.category category.category %}">{{ category.category }}</a>
<a href="{% url "category" category.category %}">{{ category.category }}</a>
{% package_bar category %}
</td>
{% package_cols category %}
{% if request.GET.extras %}
<td>
<img src="{% url djeuscan.views.chart_category category.category 'packages-monthly-small' %}" />
<img src="{% url djeuscan.views.chart_category category.category 'versions-monthly-small' %}" />
<img src="{% url "chart_category" category.category 'packages-monthly-small' %}" />
<img src="{% url "chart_category" category.category 'versions-monthly-small' %}" />
</td>
{% endif %}
</tr>