summaryrefslogtreecommitdiff
path: root/templates/director.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/director.html')
-rw-r--r--templates/director.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/templates/director.html b/templates/director.html
new file mode 100644
index 0000000..3257ee9
--- /dev/null
+++ b/templates/director.html
@@ -0,0 +1,31 @@
+{% extends "base.html" %}
+
+{% block title %}{{ director_name }} · Lumière{% endblock %}
+
+{% block content %}
+ <section class="page-heading">
+ <p class="eyebrow">Director</p>
+ <h1>{{ director_name }}</h1>
+ </section>
+
+ <section class="director-summary" aria-label="Director summary">
+ <article class="summary-card">
+ <span class="summary-label">Films logged</span>
+ <strong>{{ director_summary.total_films_logged }}</strong>
+ </article>
+ <article class="summary-card">
+ <span class="summary-label">Average stars</span>
+ <strong>{{ "%.1f"|format(director_summary.average_stars) }}</strong>
+ </article>
+ <article class="summary-card">
+ <span class="summary-label">Common shelf</span>
+ <strong>{{ director_summary.most_common_shelf|title }}</strong>
+ </article>
+ </section>
+
+ <section class="diary-feed" aria-label="{{ director_name }} filmography">
+ {% for film in films %}
+ {% include "_film_card.html" %}
+ {% endfor %}
+ </section>
+{% endblock %}