{% extends "base.html" %} {% block content %}
{{ profile_display_name }}
{{ stats.total_movies }}
movies
{{ stats.avg_rating_display() }}★
avg rating
{{ stats.favorite_director_display() }}
fav director
{{ stats.most_active_month_display() }}
most active
Recent Top Rated History Trends
{% if view == "history" %} {% if let Some(hist) = history %}
Movies watched this year
{% for cell in heatmap %}
{{ cell.count }}
{{ cell.month_label }}
{% endfor %}
{% for month in hist %}

{{ month.month_label }} {{ month.count }}

{% for entry in month.entries %}
{% if let Some(poster) = entry.movie().poster_path() %}
{% endif %}
{{ entry.movie().title().value() }} ({{ entry.movie().release_year().value() }})
{% if let Some(dir) = entry.movie().director() %}
{{ dir }}
{% endif %}
{% for filled in entry.review().stars() %} {% endfor %}
{{ entry.review().watched_at().format("%b %-d") }}
{% endfor %}
{% else %}

No movies logged yet.

{% endfor %} {% endif %} {% elif view == "trends" %} {% if let Some(t) = trends %} {% endif %} {% else %} {% if let Some(paged) = entries %}
{% for entry in paged.items %}
{% if let Some(poster) = entry.movie().poster_path() %}
{% endif %}
{{ entry.movie().title().value() }} ({{ entry.movie().release_year().value() }})
{% if let Some(dir) = entry.movie().director() %}
{{ dir }}
{% endif %}
{% for filled in entry.review().stars() %} {% endfor %}
{% if let Some(comment) = entry.review().comment() %}
{{ comment.value() }}
{% endif %}
{{ entry.review().watched_at().format("%Y-%m-%d") }}
{% if ctx.is_current_user(entry.review().user_id().value()) %}
{% endif %}
{% else %}

No reviews yet.

{% endfor %}
{% endif %} {% endif %}
{% endblock %}