lodgeit/lodgeit/views/paste_tree.html

21 lines
663 B
HTML

{% extends "layout.html" %}
{% set page_title = _('Paste Tree') %}
{% set active_page = 'all' %}
{% block body %}
<p>{% trans %}
Here you can see the requested tree of paste replies. The paste you're
coming from is highlighted.{% endtrans %}
</p>
<ul class="paste_tree">
{%- for paste in [paste] recursive %}
<li {% if paste.identifier == current %}
class="highlighted"{% endif %}>
<a href="{{ paste.url|e}}">Paste #{{ paste.identifier }}</a> &mdash; {{paste.pub_date|datetimeformat }}
{%- if paste.children -%}
<ul>{{ loop(paste.children) }}</ul>
{%- endif -%}
</li>
{%- endfor %}
</ul>
{% endblock %}