also show subsequent window on up fish

This commit is contained in:
insects 2025-02-07 15:13:35 +01:00
parent c761a9ef26
commit f9bc80cc80
2 changed files with 21 additions and 0 deletions

View file

@ -89,6 +89,15 @@ pub fn main_page(
(clock::to_earth_time(window.start_time + window.duration).format("%c %Z"))
}
}
@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"))
}
}
}
} @else {
.date data-ts=(clock::to_earth_time(window.start_time).timestamp_millis()) {
.inner id=(format!("date-{}", fish.entry.id)) hx-preserve {

View file

@ -55,6 +55,18 @@ select {
.when .date {
color: gray;
font-size: 14px;
display: inline-block;
}
.date.tiny {
font-size: 12px;
display: block;
margin-left: 5px;
color: #aaa;
}
.date .inner {
display: inline-block;
}
section.up {