From 965fc0eda875c05dae67b4ffece5ae4421f44afe Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Mon, 4 May 2026 19:03:44 +0200 Subject: [PATCH] feat: add activity feed, users, and profile HTML templates --- .../templates/activity_feed.html | 50 ++++++ .../template-askama/templates/base.html | 2 + .../template-askama/templates/profile.html | 164 ++++++++++++++++++ .../template-askama/templates/users.html | 18 ++ 4 files changed, 234 insertions(+) create mode 100644 crates/adapters/template-askama/templates/activity_feed.html create mode 100644 crates/adapters/template-askama/templates/profile.html create mode 100644 crates/adapters/template-askama/templates/users.html diff --git a/crates/adapters/template-askama/templates/activity_feed.html b/crates/adapters/template-askama/templates/activity_feed.html new file mode 100644 index 0000000..5af133f --- /dev/null +++ b/crates/adapters/template-askama/templates/activity_feed.html @@ -0,0 +1,50 @@ +{% extends "base.html" %} +{% block content %} +
+ {% for entry in 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 %} +
+ {% if let Some(comment) = entry.review().comment() %} +
{{ comment.value() }}
+ {% endif %} +
+ {{ entry.user_display_name() }} + {{ entry.review().watched_at().format("%b %-d, %Y") }} +
+ {% if ctx.is_current_user(entry.review().user_id().value()) %} +
+ +
+ {% endif %} +
+
+ {% else %} +

No movies logged yet.

+ {% endfor %} +
+ +{% endblock %} diff --git a/crates/adapters/template-askama/templates/base.html b/crates/adapters/template-askama/templates/base.html index 7ae6563..b6d03db 100644 --- a/crates/adapters/template-askama/templates/base.html +++ b/crates/adapters/template-askama/templates/base.html @@ -13,6 +13,8 @@
Movies Diary