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
1 changed files with 27 additions and 0 deletions
Showing only changes of commit a379de179d - Show all commits

View File

@ -0,0 +1,27 @@
use maud::{html, Markup, PreEscaped};
/// Sbot error template builder.
///
/// Display a message to the operator when an sbot command returns an error.
pub fn build_template(error_msg: String) -> Markup {
html! {
(PreEscaped("<!-- SBOT ERROR -->"))
div class="card center" {
div class="capsule capsule-container border-danger center-text" {
p class="card-text" style="font-size: var(--font-size-4);" {
"Sbot Error"
}
p class="card-text" { (error_msg) }
p class="card-text" {
"Visit the "
strong {
a href="/settings/scuttlebutt" class="link" {
"Scuttlebutt settings menu"
}
}
" to start the Sbot and then try again."
}
}
}
}
}