{% extends "base.html" %}
{% load datagrid %}
{% load djblets_utils %}
{% load i18n %}
{% block title %}{% trans "Search Review Requests" %}{% endblock %}

<!-- TODO: highlight search terms in summaries/excerpts -->

{% block content %}
 {% if hits == 0 %}
 {% trans "No review requests matching your query" %}: <b>{{ query }}</b>
 {% else %}
 {% trans "Results" %} <b>{{ first_on_page }} - {{ last_on_page }}</b> of {{ hits }} for <b>{{ query }}</b>
 {% endif %}
 <br /><br />
 {% for result in object_list %}
  <div class="searchresult">
   <h2><a href="{{ result.get_absolute_url }}">{{ result.summary }}</a></h2>
   <div class="excerpt">{{ result.description|truncatewords:30 }}</div>
   <div class="by">{% blocktrans with result.time_added as added_timestamp and result.time_added|date:"c" as added_timestamp_raw and result.submitter|user_displayname as added_by %}<time class="timesince" datetime="{{added_timestamp_raw}}">{{added_timestamp}}</time> by {{added_by}}{% endblocktrans %}</div>
  </div>
 {% endfor %}
 {% if is_paginated %}
 {% paginator %}
 {% endif %}
{% endblock %}
