templates: wire up Team page template struct
Add TeamTemplate to templates/public/mod.rs and the IntoResponse impl
macro list. The team.html template file landed in an earlier exorcise
commit; this hooks the Rust side up so the route can render it.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2 files changed,
+10 insertions,
-0 deletions
| 89 |
89 |
|
PricingTemplate,
|
| 90 |
90 |
|
// Use cases
|
| 91 |
91 |
|
UseCasesTemplate,
|
|
92 |
+ |
// Team
|
|
93 |
+ |
TeamTemplate,
|
| 92 |
94 |
|
// Changelog
|
| 93 |
95 |
|
ChangelogTemplate,
|
| 94 |
96 |
|
// Fan+
|
| 757 |
757 |
|
pub session_user: Option<SessionUser>,
|
| 758 |
758 |
|
}
|
| 759 |
759 |
|
|
|
760 |
+ |
/// Team page listing the founder, residents, and fellows.
|
|
761 |
+ |
#[derive(Template)]
|
|
762 |
+ |
#[template(path = "pages/team.html")]
|
|
763 |
+ |
pub struct TeamTemplate {
|
|
764 |
+ |
pub csrf_token: CsrfTokenOption,
|
|
765 |
+ |
pub session_user: Option<SessionUser>,
|
|
766 |
+ |
}
|
|
767 |
+ |
|
| 760 |
768 |
|
/// What's New / changelog page.
|
| 761 |
769 |
|
#[derive(Template)]
|
| 762 |
770 |
|
#[template(path = "pages/changelog.html")]
|