also show subsequent window on up fish
This commit is contained in:
parent
c761a9ef26
commit
f9bc80cc80
2 changed files with 21 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue