{% load combo humanize %}

<div class="rsu-log-errors">

{% now "Ymd" as today %}

<dl>
{% for log in json.data %}
{% if log.content.error %}
  {% ifchanged %}
  <dt>
    {{ log.timestamp|parse_datetime|naturalday:"j F Y" }},
    {{ log.timestamp|parse_datetime|naturaltime }}
  </dt>
  {% endifchanged %}
  <dd
    {% if log.timestamp|parse_datetime|date:"Ymd" == today %}
      style="color:red;"
    {% endif %}>
    {{ log.timestamp|parse_datetime|time:"H:i" }} : {{ log.content.text }}
    <br />
    <a href="{{ log.content.meta.form_url }}">{{ log.content.meta.form_name }}</a>
    ({{ log.content.meta.form_number }})
  </dd>
{% endif %}
{% endfor %}
</dl>

</div>
