{% extends "base.html" %} {% block content %}
{# ── Hero ── #}
{% if let Some(poster) = movie.poster_path() %}
{% endif %}
{{ movie.title().value() }} ({{ movie.release_year().value() }})
{% if let Some(dir) = movie.director() %}{{ dir }}{% endif %} {% if let Some(p) = profile %} {% if let Some(runtime) = p.runtime_minutes %}· {{ runtime }} min{% endif %} {% if let Some(lang) = &p.original_language %}· {{ lang|upper }}{% endif %} {% endif %}
{% if let Some(p) = profile %} {% if !p.genres.is_empty() %}
{% for g in &p.genres %}{{ g.name }}{% endfor %}
{% endif %} {% if let Some(tagline) = &p.tagline %}{% if !tagline.is_empty() %}
"{{ tagline }}"
{% endif %}{% endif %} {% endif %}
+ Log a review {% if ctx.user_id.is_some() %} {% if on_watchlist %}
{% else %}
{% endif %} {% endif %}
{# ── Stats ── #}
{% if let Some(avg) = stats.avg_rating %}
{{ format!("{:.1}", avg) }}★
avg rating
{% endif %}
{{ stats.total_count }}
reviews
{% if stats.federated_count > 0 %}
{{ stats.federated_count }}
federated
{% endif %}
distribution
5★
{{ stats.rating_histogram[4] }}
4★
{{ stats.rating_histogram[3] }}
3★
{{ stats.rating_histogram[2] }}
2★
{{ stats.rating_histogram[1] }}
1★
{{ stats.rating_histogram[0] }}
{% if let Some(p) = profile %} {# ── Overview ── #} {% if let Some(overview) = &p.overview %}{% if !overview.is_empty() %}

{{ overview }}

{% endif %}{% endif %} {# ── Cast ── #} {% if !p.cast.is_empty() %}
CAST
{% for (i, member) in p.cast.iter().enumerate() %}{% if i < 10 %}
{% if let Some(path) = &member.profile_path %} {{ member.name }} {% else %} {{ member.name }} {% endif %}
{{ member.name }}
{{ member.character }}
{% endif %}{% endfor %}
{% endif %} {# ── Crew ── #} {% if !p.crew.is_empty() %}
CREW
{% endif %} {% endif %} {# ── Reviews ── #}
REVIEWS
{% for entry in reviews %}
{% for filled in entry.review().stars() %} {% endfor %}
{% if let Some(comment) = entry.review().comment() %}
{{ comment.value() }}
{% endif %}
{% match entry.review().source() %} {% when ReviewSource::Remote with { actor_url } %} {{ entry.user_display_name() }} {{ entry.review().watched_at().format("%b %-d, %Y") }} ↗ federated {% when ReviewSource::Local %} {% if ctx.is_current_user(entry.review().user_id().value()) %} you {% else %} {{ entry.user_display_name() }} {% endif %} {{ entry.review().watched_at().format("%b %-d, %Y") }} {% endmatch %}
{% if ctx.is_current_user(entry.review().user_id().value()) %}
{% endif %}
{% else %}

No reviews yet.

{% endfor %}
{% endblock %}