Skip to content
Permalink
Browse files
Fixed templates via scripts/jinjify.py.
  • Loading branch information
felixfontein committed May 10, 2015
1 parent 152c608 commit 1de2d7c5ed60e87018c4a3a7da54b17bf2c33c89
@@ -11,10 +11,10 @@
{% endblock %}

{% block content %}
{% if subcategories: %}
{% if subcategories %}
{{ messages('Subcategories:') }}
<ul>
{% for name, link in subcategories: %}
{% for name, link in subcategories %}
<li><a href="{{ link }}">{{ name }}</a></li>
{% endfor %}
</ul>
@@ -20,10 +20,10 @@
{% if description %}
<p>{{ description }}</p>
{% endif %}
{% if subcategories: %}
{% if subcategories %}
{{ messages('Subcategories:') }}
<ul>
{% for name, link in subcategories: %}
{% for name, link in subcategories %}
<li><a href="{{ link }}">{{ name }}</a></li>
{% endfor %}
</ul>
@@ -10,19 +10,19 @@
{% if items %}
<h2>{{ messages("Categories") }}</h2>
{% endif %}
{% for text, full_name, path, link, indent_levels, indent_change_before, indent_change_after in cat_hierarchy: %}
{% for i in range(indent_change_before): %}
{% for text, full_name, path, link, indent_levels, indent_change_before, indent_change_after in cat_hierarchy %}
{% for i in range(indent_change_before) %}
<ul class="postlist">
{% endfor %}
<li><a class="reference" href="{{ link }}">{{ text }}</a>
{% if indent_change_after <= 0: %}
{% if indent_change_after <= 0 %}
</li>
{% endif %}
{% for i in range(-indent_change_after): %}
{% for i in range(-indent_change_after) %}
</ul>
% if i + 1 < len(indent_levels): %}
{% if i + 1 < indent_levels|length %}
</li>
% endif %}
{% endif %}
{% endfor %}
{% endfor %}
{% if items %}
@@ -7,17 +7,17 @@
{% if items %}
<h2>{{ messages("Categories") }}</h2>
{% endif %}
{% for text, full_name, path, link, indent_levels, indent_change_before, indent_change_after in cat_hierarchy: %}
{% for i in range(indent_change_before): %}
{% for text, full_name, path, link, indent_levels, indent_change_before, indent_change_after in cat_hierarchy %}
{% for i in range(indent_change_before) %}
<ul class="unstyled">
{% endfor %}
<li><a class="reference badge" href="{{ link }}">{{ text }}</a>
{% if indent_change_after <= 0: %}
{% if indent_change_after <= 0 %}
</li>
{% endif %}
{% for i in range(-indent_change_after): %}
{% for i in range(-indent_change_after) %}
</ul>
{% if i + 1 < len(indent_levels): %}
{% if i + 1 < indent_levels|length %}
</li>
{% endif %}
{% endfor %}

0 comments on commit 1de2d7c

Please sign in to comment.