1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Status page.

use crate::templates;

markup::define! {
    Status(settings: crate::settings::Settings) {
        section.hero."is-info" {
            div."hero-head" { {templates::navbar::NavBar {}} }
            div."hero-body" {
                div.container {
                    h1.title."is-4" {
                        "Status"
                    }
                    h2.subtitle."is-6" {
                        "Extended engine status"
                    }
                }
            }
        }
        section.section {
            div.container {
                h3.title."is-5" { "Settings" }
                h4.subtitle."is-7" {
                    "This is what configured in the settings file"
                }
                div.message {
                    div."message-body" {
                        pre {
                            code {
                                {format!("{:#?}", &settings)}
                            }
                        }
                    }
                }
            }
        }
    }
}