display zone

This commit is contained in:
insects 2025-02-09 17:57:59 +01:00
parent 81d4340abd
commit 57f803defd
3 changed files with 9 additions and 2 deletions

View file

@ -10,8 +10,8 @@ pub fn changelog_page() -> Markup {
h2 { "1.2.0" }
ul {
li { "Improved display of fish conditions, the weather constraints are now shown" }
li { "Color-coded the patch display badges" }
li { "The fishing hole name is now also shown next to the fish"}
li { "Color-coded the patch display badges" }
}
}

View file

@ -117,7 +117,7 @@ pub fn fish_list(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"))
}
}
}
}
}
@ -154,6 +154,7 @@ pub fn fish_list(data: &ViewData) -> Markup {
@if let Some(location_id) = fish.entry.location {
@if let Some(location) = data.state.data.db_data.fishing_spots.get(&location_id) {
div {
span.zone { (fish.meta.zone_en) }
(location.name_en)
}
}

View file

@ -197,3 +197,9 @@ summary:hover {
.patch-7 {
background: #e5b522;
}
.zone {
font-size: 13px;
color: gray;
margin-right: 4px;
}