{% extends "base/headermenu.html" %}
{% load i18n %}
{% block contents %}

  <p><br></p>

  <table class="pageheader">
    <tr>
      <td align="left">
        {{ target }}{% trans "'s Rating" %}
        &nbsp;&nbsp;&nbsp;&nbsp;
      </td>
      <td align="right">
{% if page.has_previous %}
  {% if search_query %}
    {% if user_id %}
        <a href="{% url djanction.item.views.list page_no=page.previous_page_number %}?search_query={{esc_search_query}}&user_id={{user_id}}">{% trans "Previous Page" %}</a>
    {% else %}
        <a href="{% url djanction.item.views.list page_no=page.previous_page_number %}?search_query={{esc_search_query}}">{% trans "Previous Page" %}</a>
    {% endif %}
  {% else %}
    {% if user_id %}
        <a href="{% url djanction.item.views.list page_no=page.previous_page_number %}?user_id={{iser_id}}">{% trans "Previous Page" %}</a>
    {% else %}
        <a href="{% url djanction.item.views.list page_no=page.previous_page_number %}">{% trans "Previous Page" %}</a>
    {% endif %}
  {% endif %}
{% else %}
        <font color="gray">{% trans "Previous Page" %}</font>
{% endif %}
        {{ page.start_index }} - {{ page.end_index }} / {{ page.paginator.count }}
{% if page.has_next %}
  {% if search_query %}
    {% if user_id %}
        <a href="{% url djanction.item.views.list page_no=page.next_page_number %}?search_query={{esc_search_query}}&user_id={{user_id}}">{% trans "Next Page" %}</a>
    {% else %}
        <a href="{% url djanction.item.views.list page_no=page.next_page_number %}?search_query={{esc_search_query}}">{% trans "Next Page" %}</a>
    {% endif %}
  {% else %}
    {% if user_id %}
        <a href="{% url djanction.item.views.list page_no=page.next_page_number %}?user_id={{user_id}}">{% trans "Next Page" %}</a>
    {% else %}
        <a href="{% url djanction.item.views.list page_no=page.next_page_number %}">{% trans "Next Page" %}</a>
    {% endif %}
  {% endif %}
{% else %}
        <font color="gray">{% trans "Next Page" %}</font>
{% endif %}
      </td>
    </tr>
</table>

<p><br></p>

  <div class="mainbox">
    <div class="inner">
      <div class="top"><span></span></div>
        <div class="content">
          <p>
            <h3>{% trans "Feedback List" %}</h3>

            <p>
{% if page.object_list %}

              <table width="100%" border="0" collapse="0" cellspacing="10">
                <tr>
                  <th>{% trans "Item" %}</th>
                  <th>{% trans "Comment" %}</th>
                  <th>{% trans "Rating" %}</th>
                  <th>{% trans "Regist Date" %}</th>
                </tr>
  {% for item in page.object_list %}
                <tr>
                  <td>
                    <a href="{% url djanction.item.views.info item.id %}">{{ item.item_name|escape }}</a>
                  </td>
                  <td>
                    {{ item.comment|escape }}
                  </td>
                  <td align="center">
                    {{ item.rating}}
                  </td>
                  <td>
                    {{ item.regist_date|date:"Y年m月d日(D) H:i:s" }}
                  </td>
                </tr>
  {% endfor %}
              </table>

{% else %}
              <br>
              ユーザの評価はありません。
{% endif %}

            </p>
          </p>
        </div>
        <div class="base"><span></span></div>
      </div>
    </div>
  </div>

{% endblock %}
