feat: show user avatars on /users page
All checks were successful
CI / Check / Test / Build (push) Successful in 24m46s

This commit is contained in:
2026-05-13 23:45:19 +02:00
parent 19171806b9
commit e41d85bd7e
8 changed files with 33 additions and 7 deletions

View File

@@ -170,6 +170,7 @@ struct UserSummaryView {
initial: char,
avg_rating_display: String,
total_movies: i64,
avatar_url: Option<String>,
}
#[derive(Template)]
@@ -495,6 +496,7 @@ impl HtmlRenderer for AskamaHtmlRenderer {
initial,
avg_rating_display,
total_movies: u.total_movies,
avatar_url: u.avatar_path.as_ref().map(|p| format!("/images/{}", p)),
}
})
.collect();