summaryrefslogtreecommitdiff
path: root/src/render/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/mod.rs')
-rw-r--r--src/render/mod.rs44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/render/mod.rs b/src/render/mod.rs
index d391b6e..49c3086 100644
--- a/src/render/mod.rs
+++ b/src/render/mod.rs
@@ -63,47 +63,3 @@ pub fn system_status(sections: &[(String, Vec<&unit::Unit>)]) -> String {
};
render_in_page(b)
}
-
-pub fn render_message(message: &str, units: &[unit::Unit]) -> String {
- (html!{
- : Raw("<!DOCTYPE html>");
- html {
- head {
- title: "Title";
- link(rel="stylesheet", type="text/css", href="static/main.css");
- }
- body {
- p {
- : message
- }
- h1 {
- : "Units"
- }
- table {
- tr {
- th {
- : "Unit"
- }
- th {
- : "Active"
- }
- }
- @ for unit in units {
- tr {
- td {
- : &unit.name
- }
- td {
- : format_args!("{} ({})",
- &unit.active_state,
- &unit.sub_state)
- }
- }
- }
- }
- }
- }
- })
- .into_string()
- .unwrap()
-}