v1.1: Add weekly introductions

- Create a new migration adding a Weeks table, allowing for new weekly introductions
     and paving the way for multiple week handling.
 - Add route to update the weekly introduction
 - Move the week rendering to a specific week file
 - Update the templates to use the week number from the week data
 - Update templates to render and edit weekly introductions
This commit is contained in:
trotFunky 2024-07-23 21:51:51 +01:00
parent 9911895b5b
commit 67ce54e992
12 changed files with 165 additions and 71 deletions

View file

@ -58,3 +58,12 @@ pub struct VotingData {
pub struct AuthTokens {
pub token: String,
}
#[derive(sqlx::FromRow, Deserialize, Serialize)]
#[serde(crate = "rocket::serde")]
pub struct Week {
pub number: u8,
pub is_last_week: bool,
pub rendered_text: String,
pub raw_text: String,
}