{% extends "issues/base.html" %} {% load issues %} {% block tab_content %} {% comment %}
{% if page_obj.has_previous %} « first previous {% endif %} Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}. {% if page_obj.has_next %} next last » {% endif %}
{% endcomment %}
Showing {{ page_obj.start_index }} - {{ page_obj.end_index }} of {{ page_obj.paginator.count }} {% if project.digested_event_count != project.stored_event_count %} available events ({{ project.digested_event_count }} total observed). {% else %} total events. {% endif %}
{# UI / UX question: is it a good idea to reuse-with-different-meaning (pages, not events) for this? #} {# adapted copy/pasta from _event_nav #}
{% if page_obj.has_previous %} {# no need for 'is_first': if you can go to the left, you can go all the way to the left too #} {% else %}
{% endif %} {% if page_obj.has_previous %} {% else %}
{% endif %} {% if page_obj.has_next %} {% else %}
{% endif %} {% if page_obj.has_next %} {% else %}
{% endif %}
{% comment %} TODO release environment {% endcomment %} {% for event in page_obj %} {% comment %} In the current setup, event title wraps to the next line if needed, there's no clipping. I tried to get 'just use dots' to work for that, but I did not get that to work in a table. Perhaps it's actually anti-thetical to the table layout. Perhaps if we used a flexbox layout, it would work better. Anyway, overflow-to-next-line is also fine (at least for now) {% endcomment %} {% endfor %} {# note: no "empty" case; event-less issues are not something I expect to really support (for some definition of "really") #}
# ID Timestamp Title Release Environment
{{ event.digest_order }} {# how useful is this really? #} {{ event.id|truncatechars:9 }} {{ event.timestamp|date:"j M G:i:s" }}.{{ event.timestamp|date:"u"|slice:":3" }} {{ event.title }} {{ event.release|shortsha }} {{ event.environment|truncatechars:30 }}
{% endblock %}