Skip to content

Commit

Permalink
Footer links (#115)
Browse files Browse the repository at this point in the history
* commit having rebuilt from old

* terra library updated

* add builds into github workflow

* rebuild lock file

* another terra change

* terra before renv snapshot

* with units deps too

* link and connections through footer

* adding extra libgdal1

* rem libgdal1

* messing about with terra stuff again

* terra again

* extra footer links

* blank space removal for styler
  • Loading branch information
alex-rogers-hub authored Jan 28, 2025
1 parent 969c794 commit 703b022
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-shiny.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ jobs:
parameter_file: deploy-parameters.yaml
secrets:
SHINYAPPS_SECRET: ${{ secrets.SHINYAPPS_SECRET }}
SHINYAPPS_TOKEN: ${{ secrets.SHINYAPPS_TOKEN }}
SHINYAPPS_TOKEN: ${{ secrets.SHINYAPPS_TOKEN }}
1 change: 1 addition & 0 deletions R/read_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ read_revenue_data <- function(file = "data/la_maintained_schools_revenue_reserve
}

# Upper Tier data ----------------------------------------------------------------

read_upper_tier_data <- function(file = "data/Local_Authority_Districts_All_simplified.geojson") {
df_upper_tier <- sf::read_sf(file)
return(df_upper_tier)
Expand Down
13 changes: 13 additions & 0 deletions server.R
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,19 @@ server <- function(input, output, session) {
paste0("Current selections: ", input$selectPhase, ", ", input$selectArea)
})

# footer links -----------------------
shiny::observeEvent(input$accessibility_statement, {
shiny::updateTabsetPanel(session, "navlistPanel", selected = "a11y_panel")
})

shiny::observeEvent(input$cookies, {
shiny::updateTabsetPanel(session, "navlistPanel", selected = "cookies_panel_ui")
})

shiny::observeEvent(input$support_and_feedback, {
shiny::updateTabsetPanel(session, "navlistPanel", selected = "support_panel_ui")
})

# Stop app ------------------------------------------------------------------
session$onSessionEnded(function() {
stopApp()
Expand Down
5 changes: 4 additions & 1 deletion ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ ui <- function(input, output, session) {
),

# Footer ------------------------------------------------------------------
footer(full = TRUE)
shinyGovstyle::footer(
full = TRUE,
links = c("Accessibility statement", "Cookies", "Support and feedback")
)
)
}

0 comments on commit 703b022

Please sign in to comment.