Posts management widget

This commit is contained in:
Alphonse Paix
2025-10-03 18:30:09 +02:00
parent 9296187181
commit ce8c602ddb
10 changed files with 203 additions and 15 deletions

View File

@@ -65,6 +65,17 @@ pub struct DashboardTemplate {
pub current_page: i64,
pub max_page: i64,
pub users: Vec<UserEntry>,
pub posts: Vec<PostEntry>,
pub posts_current_page: i64,
pub posts_max_page: i64,
}
#[derive(Template)]
#[template(path = "dashboard/posts/list.html", block = "posts")]
pub struct PostsPageDashboardTemplate {
pub posts: Vec<PostEntry>,
pub posts_current_page: i64,
pub posts_max_page: i64,
}
#[derive(Template)]