diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-03-15 16:26:15 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-03-15 16:26:15 +0200 |
commit | de9c54ece4c0fc3619f9f527bfbeeb7d7ebb829d (patch) | |
tree | 7fa4dcba91e5e0d5c1fd253178770bfc90fecf11 | |
parent | 4c504912e312e80cc5d67ef22f84d6c8912bbe8f (diff) | |
download | radicle-ci-broker-de9c54ece4c0fc3619f9f527bfbeeb7d7ebb829d.tar.gz |
feat: refersh front page every 10 seconds
Signed-off-by: Lars Wirzenius <liw@liw.fi>
-rw-r--r-- | src/pages.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pages.rs b/src/pages.rs index cd3906e..3b4893e 100644 --- a/src/pages.rs +++ b/src/pages.rs @@ -28,6 +28,7 @@ use crate::{ }; const CSS: &str = include_str!("radicle-ci.css"); +const REFERESH_INTERVAL: &str = "10"; /// All possible errors returned from the status page module. #[derive(Debug, thiserror::Error)] @@ -109,6 +110,12 @@ impl PageData { doc.push_to_head(&Element::new(Tag::Style).with_text(CSS)); + doc.push_to_head( + &Element::new(Tag::Meta) + .with_attribute("http-equiv", "refresh") + .with_attribute("content", REFERESH_INTERVAL), + ); + doc.push_to_body( &Element::new(Tag::H1) .with_text("CI for Radicle node ") |