Some work on the frontend

This commit is contained in:
Lennart K
2025-07-04 19:44:17 +02:00
parent a5663bf006
commit 40938cba02
16 changed files with 470 additions and 300 deletions

View File

@@ -0,0 +1 @@
pub mod user;

View File

@@ -0,0 +1,14 @@
use askama::Template;
use askama_web::WebTemplate;
use rustical_store::auth::Principal;
pub trait Section: Template {
fn name() -> &'static str;
}
#[derive(Template, WebTemplate)]
#[template(path = "pages/user.html")]
pub struct UserPage<S: Section> {
pub user: Principal,
pub section: S,
}