Posts management widget
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user