9d6ce50864
This prevents failure after upgrading to Django 1.9 and reduces spam in logs. Change-Id: I2d472413b7073a01affebbc99482726672f37b60 Closes-Bug: #1499661
28 lines
848 B
HTML
28 lines
848 B
HTML
{% load custom_filters %}
|
|
{% load i18n %}
|
|
|
|
<h3>{% trans "Categories" %}</h3>
|
|
|
|
<div style="clear:both;"></div>
|
|
<div class="columns">
|
|
{% if categories|slice:"1:" %}
|
|
<div class="colleft">
|
|
<ul>
|
|
{% for category in categories|firsthalf %}
|
|
<li><a href="{% url 'horizon:murano:catalog:index' %}?category={{ category|urlencode }}">{{ category }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="colright">
|
|
<ul>
|
|
{% for category in categories|lasthalf %}
|
|
<li><a href="{% url 'horizon:murano:catalog:index' %}?category={{ category|urlencode }}">{{ category }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% else %}
|
|
<a href="{% url 'horizon:murano:catalog:index' %}?category={{ categories.0|urlencode }}">{{ categories.0 }}</a>
|
|
{% endif %}
|
|
</div>
|