Replace Rocket and Tera with Rouille and Maud #88

Merged
glyph merged 67 commits from rouille_maud into main 2022-03-25 08:07:15 +00:00
2 changed files with 5 additions and 2 deletions
Showing only changes of commit 3a7b499742 - Show all commits

View File

@ -55,7 +55,7 @@ pub fn build_template() -> PreEscaped<String> {
}
(PreEscaped("<!-- middle -->"))
a class="middle" {
div class={ "circle circle-large" (circle_color) } {
div class={ "circle circle-large " (circle_color) } {
p style="font-size: 4rem; color: var(--near-black);" {
(center_circle_text)
}
@ -64,7 +64,7 @@ pub fn build_template() -> PreEscaped<String> {
(PreEscaped("<!-- bottom-left -->"))
(PreEscaped("<!-- SYSTEM STATUS LINK AND ICON -->"))
a class="bottom-left" href="/status/scuttlebutt" title="Status" {
div class={ "circle circle-small border-circle-small" (circle_border) } {
div class={ "circle circle-small border-circle-small " (circle_border) } {
img class="icon-medium" src="/icons/heart-pulse.svg";
}
}

View File

@ -6,6 +6,9 @@ use crate::utils::sbot;
// HTML RENDERING FOR ELEMENTS
// TODO: refactor this to make better use of splices
// https://maud.lambda.xyz/splices-toggles.html
fn downtime_element(downtime: &Option<String>) -> Markup {
match downtime {
Some(time) => {