{% extends "retrieval/watch/base.html" %} {% block bodyclass %}dashboard{% endblock %} {% comment %} ########################################################################### # # # Copyright (c) 2011 - Idiap Research Institute # # http://www.idiap.ch/ # # # # See file COPYING for the license associated to this software # # # ########################################################################### {% endcomment %} {% block content %}
{% if qt %}

Search for - {{ qt.query }}

{% else %}

{% trans 'Search images through relevance feedback' %}

{% endif %}
{# navigation through the iterations #}
{% if user.is_authenticated and user.is_staff %} User action: {{ qs.action }}, {{ qs.data }} {% else %} Iteration {{ qs.iteration }} {% endif %} {# navigation through the iterations #}
{% if qa %} {# display the items for relevance feedback #} {% if qa.answers %} {% for answer in qa.answers %} {% if forloop.counter|divisibleby:"3" %} {% endif %} {% if forloop.last %} {% endif %} {% endfor %}
{% for image in answer.images %}
{% if user.is_authenticated and user.is_staff %} {% else %} {% endif %} {% ifequal image.imdbid qs.relevant_images %}
!!
{% endifequal %}
{% endfor %}
{# display some explanatory text #} {% ifequal qs.relevant_images None %}





One of the images is relevant!




!!
{% else %}

The image indicated by the user is marked with "!!" in the upper right corner.

{% endifequal %}
{% endif %}
{# display the top ranked items in order #} {% if qa.answers2 %}

RANK LIST

{# navigation through the items #} Size: {{ qa.nb_answers2 }}. On page, from {{ qa.index_from2 }}. << / >>
{% for answer in qa.answers2 %} {% if forloop.counter|divisibleby:"3" %} {% endif %} {% endfor %}
{% for image in answer.images %} {% endfor %}
{% endif %} {% endif %} {% endblock %}