ticker-serve: delint template syntax
This commit is contained in:
parent
f5547cfbe6
commit
119e221856
|
@ -86,7 +86,7 @@ fn render_index(app_state: &AppState) -> String {
|
|||
html!(
|
||||
<div>
|
||||
<h2>
|
||||
<span class={ day_class }>
|
||||
<span class=day_class>
|
||||
<span class="day">
|
||||
{ text!("{}", day.date.day()) }
|
||||
</span>
|
||||
|
@ -101,18 +101,15 @@ fn render_index(app_state: &AppState) -> String {
|
|||
|
||||
{ day.events.iter().map(|e| html!(
|
||||
<article class="event"
|
||||
style={ format!("border-left: 1.5rem solid {}", &config.calendars.get(&e.calendar).map(|o| &o.color[..]).unwrap_or("white")) }
|
||||
>
|
||||
<p class="time"
|
||||
>
|
||||
{ if e.recurrence {
|
||||
html!(<span class="recurrence" title="Regelmässige Veranstaltung">"⭯"</span>)
|
||||
} else {
|
||||
html!(<span class="recurrence">" "</span>)
|
||||
} }
|
||||
style=( format!("border-left: 1.5rem solid {}", &config.calendars.get(&e.calendar).map(|o| &o.color[..]).unwrap_or("white")) )>
|
||||
<p class="time">
|
||||
{ if e.recurrence {
|
||||
html!(<span class="recurrence" title="Regelmässige Veranstaltung">"⭯"</span>)
|
||||
} else {
|
||||
html!(<span class="recurrence">" "</span>)
|
||||
} }
|
||||
<span class="dtstart"
|
||||
title={ format!("{}", e.dtstart.format("%c")) }
|
||||
>
|
||||
title=( format!("{}", e.dtstart.format("%c")) )>
|
||||
{ text!("{}", &e.dtstart.format("%H:%M")) }
|
||||
</span>
|
||||
</p>
|
||||
|
@ -122,7 +119,7 @@ fn render_index(app_state: &AppState) -> String {
|
|||
),
|
||||
Some(url) => html!(
|
||||
<h3>
|
||||
<a href={ fix_url(url) }>
|
||||
<a href=fix_url(url)>
|
||||
{ text!("{}", &e.summary) }
|
||||
</a>
|
||||
</h3>
|
||||
|
|
Loading…
Reference in New Issue