{% extends "cranefly/layout.html" %} {% import "forms.html" as form_theme with context %} {% import "cranefly/macros.html" as macros with context %} {% block title %}{{ macros.page_title(title=_('Reported Posts'),page=pagination['page']) }}{% endblock %} {% block breadcrumb %}{{ super() }}
  • {% trans %}Reported Posts{% endtrans %} {%- endblock %} {% block container %}
    {% if message %}
    {{ macros.draw_message(message) }}
    {% endif %}
    {{ pager() }}
    {% trans %}Report{% endtrans %}
    {% trans %}Activity{% endtrans %}
    {% if list_form %}
    {% endif %}
    {% for thread in threads %}
    {% if thread.weight == 2 %} {% trans %}Open{% endtrans %} {% elif thread.weight == 1 %} {% trans %}Resolved{% endtrans %} {% else %} {% trans %}Bogus{% endtrans %} {% endif %}
    {% if thread.deleted %}
    {% endif %} #{{ thread.pk }} {{ thread.name|short_string(70) }} {% if thread.is_read %} {% else %} {% endif %}
    {% if thread.report_forum %} {% trans user=thread_starter(thread), start=thread.start|reldate|low, forum=report_forum(thread) %}Post reported by {{ user }} {{ start }} in forum {{ forum }}{% endtrans %} {% else %} {% trans user=thread_starter(thread), start=thread.start|reldate|low %}Deleted post reported by {{ user }} {{ start }}{% endtrans %} {% endif %}
    {{ thread_reply(thread) }}, {{ thread.last|reldate|low }}
    {{ replies(thread.replies) }}
    {% if list_form %} {% endif %}
    {% else %}
    {% trans %}There are no reports currently. Whef!{% endtrans %}
    {% endfor %} {% if list_form %}
    {{ form_theme.field(list_form.list_action, attrs={'class': 'span3'}) }}
    {% endif %}
    {{ pager() }}
    {% endblock %} {% macro replies(thread_replies) -%} {% trans count=thread_replies, replies=thread_replies|intcomma -%} {{ replies }} reply {%- pluralize -%} {{ replies }} replies {%- endtrans %} {%- endmacro %} {% macro thread_starter(thread) -%} {% if thread.start_poster_id %}{{ thread.start_poster_name }}{% else %}{{ thread.start_poster_name }}{% endif %} {%- endmacro %} {% macro thread_reply(thread) -%} {% if thread.last_poster_id %}{{ thread.last_poster_name }}{% else %}{{ thread.last_poster_name }}{% endif %} {%- endmacro %} {% macro report_forum(thread) -%} {{ thread.report_forum }} {%- endmacro %} {% macro pager() %} {% if pagination['total'] > 0 %} {% endif %} {% endmacro %} {% block javascripts -%}{{ super() }} {%- endblock %}