{% extends 'base.html' %} {% block title %}Sessions{% endblock title %} {% block content %}
{% if dataset.count >= 2 %} {% endif %} {% if dataset.count >= 1 %}
Total playtime: {{ total_duration }} over {{ dataset.count }} sessions.
{% endif %} {% if purchase or platform or game %} Filtering by "{% firstof purchase platform game %}" {% if purchase %}See all platforms{% endif %} {% endif %} {% if dataset.count >= 1 %} {% endif %}
Name
Platform
Start
End
Duration
Manage
{% for data in dataset %}
{{ data.purchase.game }}
{{ data.purchase.platform }}
{{ data.timestamp_start | date:"d/m/Y H:i" }}
{% if data.unfinished %} Not finished yet. {% elif data.duration_manual %} -- {% else %} {{ data.timestamp_end | date:"d/m/Y H:i" }} {% endif %}
{{ data.duration_formatted }}{% if data.duration_manual %} {% endif %}
{% if data.unfinished %} {% endif %}
{% endfor %}
{% endblock content %}