R/ui.R

Defines functions ui_404 ui_403

ui_403 <- function(id) {
  htmltools::tagList(
    htmltools::h2("Forbidden"),
    htmltools::p("You are not authorised to access this page."),
    htmltools::p(htmltools::a(href = router_link("/"), "Home"))
  )
}

ui_404 <- function(id) {
  htmltools::tagList(
    htmltools::h2("Page not found"),
    htmltools::p("We're sorry, but the requested page could not be found."),
    htmltools::p(htmltools::a(href = router_link("/"), "Home"))
  )
}
gorcha/shinypages documentation built on June 29, 2022, 4:38 a.m.