{% extends "user_profile/user.html" %} {% import "macros.html" as macros %} {# This template accepts a list of response list they are a generalized form of any response and The following properties of response object are used: timestamp - when it happened user - user who gave response (database object) response_type - type of response response_url - link to the question response_title - title of the question response_snippet - abbreviated content of the response inbox_section - forum|flags #} {% block profilesection %} {% trans %}inbox{% endtrans %} {% endblock %} {% block usercontent %}
{% set re_count = request.user.new_response_count + request.user.seen_response_count %} {% if moderation_items %} {% set flag_count = moderation_items['new_count'] + moderation_items['seen_count'] %} {% else %} {% set flag_count = 0 %} {% endif %} {% if re_count > 0 and flag_count > 0 %}
{% trans %}Sections:{% endtrans %} {% trans %}forum responses ({{re_count}}){% endtrans -%} | {% trans %}flagged items ({{flag_count}}){% endtrans %}
{% endif %} {% if inbox_section == 'forum' %}
{% trans %}select:{% endtrans %} {% trans %}all{% endtrans %} | {% trans %}seen{% endtrans %} | {% trans %}new{% endtrans %} | {% trans %}none{% endtrans %}
{% endif %} {% if inbox_section == 'flags' %}
{% trans %}select:{% endtrans %} {% trans %}all{% endtrans %} | {% trans %}seen{% endtrans %} | {% trans %}new{% endtrans %} | {% trans %}none{% endtrans %}
{% endif %}
{% for response in responses %} {% endfor %}
{% endblock %} {% block userjs %} {% endblock %}