Comments management
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user