Source

lodgeit-main / lodgeit / templates / paste_tree.html

Full commit
{% 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="{{ url_for('pastes.show_paste', identifier=paste.identifier)
      }}">Paste #{{ paste.identifier }}</a> &mdash; {{
        paste.pub_date|datetimeformat }}
      {%- if paste.children -%}
        <ul>{{ loop(paste.children) }}</ul>
      {%- endif -%}
    </li>
  {%- endfor %}
  </ul>
{% endblock %}