From dbb93543f3e3e2e621e4bc9d41322c6b129bada8 Mon Sep 17 00:00:00 2001 From: insects Date: Tue, 11 Feb 2025 15:52:18 +0100 Subject: [PATCH] fix some intendation in templates --- src/templates.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/templates.rs b/src/templates.rs index 048bc3e..f413df6 100644 --- a/src/templates.rs +++ b/src/templates.rs @@ -119,7 +119,7 @@ pub fn fish_display(fish: &CombinedFish, data: &ViewData) -> Markup { div.name { h3 { (fish.meta.name_en) - span class=(format!("patch patch-{}", fish.entry.patch as u32)) { (format!("{:.1}", fish.entry.patch)) } + span class=(format!("patch patch-{}", fish.entry.patch as u32)) { (format!("{:.1}", fish.entry.patch)) } .subtitle { span { "Rarity: " (format!("{:.2}", fish.rarity * 100.)) "%" } @@ -152,8 +152,8 @@ pub fn fish_display(fish: &CombinedFish, data: &ViewData) -> Markup { @if let Some(window2) = fish.windows.get(1) { .date.tiny data-ts=(clock::to_earth_time(window2.start_time).timestamp_millis()) { "next: " - .inner id=(format!("nextwindow-{}", fish.entry.id)) hx-preserve { - (clock::to_earth_time(window2.start_time).format("%c %Z")) + .inner id=(format!("nextwindow-{}", fish.entry.id)) hx-preserve { + (clock::to_earth_time(window2.start_time).format("%c %Z")) } } } @@ -161,7 +161,7 @@ pub fn fish_display(fish: &CombinedFish, data: &ViewData) -> Markup { .date data-ts=(clock::to_earth_time(window.start_time).timestamp_millis()) { .inner id=(format!("date-{}", fish.entry.id)) hx-preserve { (clock::to_earth_time(window.start_time).format("%c %Z")) - } + } } } } @@ -199,7 +199,7 @@ pub fn fish_display(fish: &CombinedFish, data: &ViewData) -> Markup { @if let Some(location) = data.state.data.db_data.fishing_spots.get(&location_id) { div { span.zone { (fish.meta.zone_en) } - (location.name_en) + (location.name_en) } } } @@ -208,11 +208,11 @@ pub fn fish_display(fish: &CombinedFish, data: &ViewData) -> Markup { div { @if !fish.is_always_up { "ET " - (clock::display_eorzea_time(&clock::set_hm_from_float(&clock::get_current_eorzea_date(), fish.entry.start_hour.unwrap()))) + (clock::display_eorzea_time(&clock::set_hm_from_float(&clock::get_current_eorzea_date(), fish.entry.start_hour.unwrap()))) "-" (clock::display_eorzea_time(&clock::set_hm_from_float(&clock::get_current_eorzea_date(), fish.entry.end_hour.unwrap()))) - } @else { - "always up!" + } @else { + "always up!" } } div {