mirror of
https://github.com/Noratrieb/uptime.git
synced 2026-01-14 16:45:06 +01:00
Add commit to page
This commit is contained in:
parent
ef0de0124a
commit
1f89aae3de
4 changed files with 115 additions and 75 deletions
|
|
@ -51,7 +51,7 @@ async fn render_root(db: Arc<Pool<Sqlite>>) -> Result<String> {
|
|||
|
||||
let status = compute_status(checks);
|
||||
|
||||
let html = RootTemplate { status }
|
||||
let html = RootTemplate { status, version: crate::VERSION }
|
||||
.render()
|
||||
.wrap_err("error rendering template")?;
|
||||
Ok(html)
|
||||
|
|
@ -212,4 +212,5 @@ struct WebsiteStatus {
|
|||
#[template(path = "index.html")]
|
||||
struct RootTemplate {
|
||||
status: Vec<WebsiteStatus>,
|
||||
version: &'static str,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue