User profile and admin privileges
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use crate::{
|
||||
authentication::AuthenticatedUser,
|
||||
domain::{PostEntry, SubscriberEntry},
|
||||
domain::{PostEntry, SubscriberEntry, UserEntry},
|
||||
routes::{AppError, DashboardStats},
|
||||
};
|
||||
use askama::Template;
|
||||
@@ -21,6 +21,13 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Template)]
|
||||
#[template(path = "user/profile.html")]
|
||||
pub struct UserTemplate {
|
||||
pub user: UserEntry,
|
||||
pub posts: Vec<PostEntry>,
|
||||
}
|
||||
|
||||
#[derive(Template)]
|
||||
#[template(path = "message.html")]
|
||||
pub struct MessageTemplate {
|
||||
|
||||
Reference in New Issue
Block a user