Radish alpha
r
Radicle CI broker
Radicle
Git (anonymous pull)
Log in to clone via SSH
feat: refersh front page every 10 seconds
Lars Wirzenius committed 2 years ago
commit de9c54ece4c0fc3619f9f527bfbeeb7d7ebb829d
parent 4c504912e312e80cc5d67ef22f84d6c8912bbe8f
1 file changed +7 -0
modified 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 ")