Rename flake list template

This commit is contained in:
clerie 2025-02-09 22:21:29 +01:00
parent bfbecb87d9
commit daa12a9dc4
3 changed files with 4 additions and 4 deletions

View File

@ -24,8 +24,8 @@ use flake_tracker::{
Storage,
},
templates::{
FlakeListTemplate,
FlakeTemplate,
FlakesTemplate,
IndexTemplate,
RevisionTemplate,
},
@ -113,7 +113,7 @@ async fn route_index() -> Result<impl IntoResponse, AppError> {
async fn route_flakes(
State(state): State<AppState>,
) -> Result<impl IntoResponse, AppError> {
Ok(render_template(&FlakesTemplate {
Ok(render_template(&FlakeListTemplate {
flakes: state.storage.flakes().await?,
})?)
}

View File

@ -15,8 +15,8 @@ pub struct IndexTemplate {
}
#[derive(Template)]
#[template(path = "flakes.html")]
pub struct FlakesTemplate {
#[template(path = "flake_list.html")]
pub struct FlakeListTemplate {
pub flakes: Vec<FlakeRow>,
}