diff --git a/Cargo.toml b/Cargo.toml index 1d6ea86..6bc70d2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,11 +11,11 @@ structopt = "0.3.23" tera = "1.12.1" [dependencies.minify-html] -version = "0.6.8" +version = "0.8.0" features = ["js-esbuild"] [dependencies.mlua] -version = "0.6.3" +version = "0.7.3" features = ["luajit", "macros", "serialize"] [dependencies.serde] diff --git a/assets/template.html.tera b/assets/template.html.tera index 3b5ccb9..67a8959 100644 --- a/assets/template.html.tera +++ b/assets/template.html.tera @@ -1,107 +1,110 @@ -
+ +# | - {% if times %} -{{ locale.time }} | - {% endif %} -{{ locale.mo }} | -{{ locale.tu }} | -{{ locale.we }} | -{{ locale.th }} | -{{ locale.fr }} | -||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ r.idx }} | + +||||||||||||
# | + {% if times %} +{{ locale.time }} | + {% endif %} +{{ locale.mo }} | +{{ locale.tu }} | +{{ locale.we }} | +{{ locale.th }} | +{{ locale.fr }} | +||||||
{{ r.idx }} | - {% if times %} -{{ r.time }} | - {% endif %} + {% if times %} +{{ r.time }} | + {% endif %} -- {% if r.mo %} {% if r.mo.room %} - {{ r.mo.room }} - {% endif %} + | + {% if r.mo %} {% if r.mo.room %} + {{ r.mo.room }} + {% endif %} - {{ r.mo.name }} - {% endif %} - | -- {% if r.tu %} {% if r.tu.room %} - {{ r.tu.room }} - {% endif %} + {{ r.mo.name }} + {% endif %} + | ++ {% if r.tu %} {% if r.tu.room %} + {{ r.tu.room }} + {% endif %} - {{ r.tu.name }} - {% endif %} - | -- {% if r.we %} {% if r.we.room %} - {{ r.we.room }} - {% endif %} + {{ r.tu.name }} + {% endif %} + | ++ {% if r.we %} {% if r.we.room %} + {{ r.we.room }} + {% endif %} - {{ r.we.name }} - {% endif %} - | -- {% if r.th %} {% if r.th.room %} - {{ r.th.room }} - {% endif %} + {{ r.we.name }} + {% endif %} + | ++ {% if r.th %} {% if r.th.room %} + {{ r.th.room }} + {% endif %} - {{ r.th.name }} - {% endif %} - | -- {% if r.fr %} {% if r.fr.room %} - {{ r.fr.room }} - {% endif %} + {{ r.th.name }} + {% endif %} + | ++ {% if r.fr %} {% if r.fr.room %} + {{ r.fr.room }} + {% endif %} - {{ r.fr.name }} - {% endif %} - | -