Comments management
Some checks failed
Rust / Rustfmt (push) Has been cancelled
Rust / Clippy (push) Has been cancelled
Rust / Code coverage (push) Has been cancelled
Rust / Test (push) Has been cancelled

This commit is contained in:
Alphonse Paix
2025-10-03 21:12:17 +02:00
parent af9cbdcafb
commit 50a7af2b06
7 changed files with 228 additions and 25 deletions

View File

@@ -70,6 +70,10 @@ pub struct DashboardTemplate {
pub posts_current_page: i64,
pub posts_max_page: i64,
pub posts_count: i64,
pub comments: Vec<CommentEntry>,
pub comments_current_page: i64,
pub comments_max_page: i64,
pub comments_count: i64,
}
#[derive(Template)]
@@ -80,6 +84,14 @@ pub struct PostsPageDashboardTemplate {
pub posts_max_page: i64,
}
#[derive(Template)]
#[template(path = "dashboard/comments/list.html", block = "comments")]
pub struct CommentsPageDashboardTemplate {
pub comments: Vec<CommentEntry>,
pub comments_current_page: i64,
pub comments_max_page: i64,
}
#[derive(Template)]
#[template(path = "home.html")]
pub struct HomeTemplate;