pub fn render<G: GenericNode>(&self) -> View<G> {
        match &self {
            // No message should be displayed if it's the correct version
            Self::Stable => view! {},
            Self::Outdated => {
                view! {
                    div(class = "ring-4 ring-red-400 p-4 rounded-lg mt-1") {
                        div(class = "flex flex-col 2xs:flex-row dark:text-white") {
                            span(
                                class = "self-center mr-2",
                                style = "fill: #f87171;",
                                dangerously_set_inner_html = ERROR_ICON
                            )
                            p(dangerously_set_inner_html = &t!("docs-status.outdated"))
                        }
                    }
                }
            }
            Self::Beta => {
                view! {
                    div(class = "ring-4 ring-yellow-300 p-4 rounded-lg mt-1") {
                        div(class = "flex flex-col 2xs:flex-row dark:text-white") {
                            span(
                                class = "self-center mr-2",
                                style = "fill: #fcd34d;",
                                dangerously_set_inner_html = WARNING_ICON
                            )
                            p(dangerously_set_inner_html = &t!("docs-status.beta"))
                        }
                    }
                }
            }
            Self::Next => {
                view! {
                    div(class = "ring-4 ring-orange-400 p-4 rounded-lg mt-1") {
                        div(class = "flex flex-col 2xs:flex-row dark:text-white") {
                            span(
                                class = "self-center mr-2",
                                style = "fill: #fb923c;",
                                dangerously_set_inner_html = ERROR_ICON
                            )
                            p(dangerously_set_inner_html = &t!("docs-status.next"))
                        }
                    }
                }
            }
        }
    }
/// Renders the docs status to a Sycamore template for display.
Renders the docs status to a Sycamore template for display.
Renders the docs status to a Sycamore template for display .
pub fn render<G: GenericNode>(&self) -> View<G> {
        match &self {
            // No message should be displayed if it's the correct version
            Self::Stable => view! {},
            Self::Outdated => {
                view! {
                    div(class = "ring-4 ring-red-400 p-4 rounded-lg mt-1") {
                        div(class = "flex flex-col 2xs:flex-row dark:text-white") {
                            span(
                                class = "self-center mr-2",
                                style = "fill: #f87171;",
                                dangerously_set_inner_html = ERROR_ICON
                            )
                            p(dangerously_set_inner_html = &t!("docs-status.outdated"))
                        }
                    }
                }
            }
            Self::Beta => {
                view! {
                    div(class = "ring-4 ring-yellow-300 p-4 rounded-lg mt-1") {
                        div(class = "flex flex-col 2xs:flex-row dark:text-white") {
                            span(
                                class = "self-center mr-2",
                                style = "fill: #fcd34d;",
                                dangerously_set_inner_html = WARNING_ICON
                            )
                            p(dangerously_set_inner_html = &t!("docs-status.beta"))
                        }
                    }
                }
            }
            Self::Next => {
                view! {
                    div(class = "ring-4 ring-orange-400 p-4 rounded-lg mt-1") {
                        div(class = "flex flex-col 2xs:flex-row dark:text-white") {
                            span(
                                class = "self-center mr-2",
                                style = "fill: #fb923c;",
                                dangerously_set_inner_html = ERROR_ICON
                            )
                            p(dangerously_set_inner_html = &t!("docs-status.next"))
                        }
                    }
                }
            }
        }
    }
pub fn render < G : GenericNode > ( & self ) -> View < G > { match & self { // No message should be displayed if it's the correct version Self :: Stable => view ! { } , Self :: Outdated => { view ! { div ( class " " ) { div ( class " " ) { span ( class " " style " " dangerously_set_inner_html ERROR_ICON ) p ( dangerously_set_inner_html t ( " " ) ) } } } } Self :: Beta => { view ! { div ( class " " ) { div ( class " " ) { span ( class " " style " " dangerously_set_inner_html WARNING_ICON ) p ( dangerously_set_inner_html t ( " " ) ) } } } } Self :: Next => { view ! { div ( class " " ) { div ( class " " ) { span ( class " " style " " dangerously_set_inner_html ERROR_ICON ) p ( dangerously_set_inner_html t ( " " ) ) } } } } } }
Renders the docs status to a Sycamore template for display.
Renders the docs status to a Sycamore template for display .
&self
&self