Skip to content

Commit

Permalink
Merge pull request #52 from dfe-analytical-services/support-panel-ext…
Browse files Browse the repository at this point in the history
…ernal-links

Replaced all tags links in support panel with dfeshiny::external_link()
  • Loading branch information
rmbielby authored Oct 1, 2024
2 parents 0de4922 + 922addf commit a979802
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 31 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ google-analytics.html
tests/testthat/google-analytics.html
docs
inst/doc
www
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: dfeshiny
Title: DfE R Shiny Standards
Version: 0.4.1.9000
Version: 0.4.2
Authors@R: c(
person("Rich", "Bielby", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0001-9070-9969")),
Expand Down
4 changes: 3 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# dfeshiny (development version)
# dfeshiny 0.4.2

* Applied use of `external_link()` to `support_panel()`

# dfeshiny 0.4.1

Expand Down
57 changes: 28 additions & 29 deletions R/support_panel.R
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ support_panel <- function(
"This dashboard is a new service that we are developing. If you
have any feedback or suggestions for improvements, please submit
them using our ",
shiny::tags$a(
dfeshiny::external_link(
href = form_url,
"feedback form",
.noWS = c("after")
)
link_text = "feedback form"
),
"."
)
} else {
shiny::tags$p(
Expand All @@ -124,79 +124,78 @@ support_panel <- function(
"f you spot any errors or bugs while using this dashboard, please
screenshot and email them to "
),
shiny::tags$a(
dfeshiny::external_link(
href = paste0("mailto:", team_email),
team_email,
.noWS = c("after")
link_text = team_email,
add_warning = FALSE
), "."
),
shiny::tags$h2("Find more information on the data"),
if (ees_publication) {
shiny::tags$p(
"The parent statistical release of this dashboard, along with
methodological information,
is available at the following link: ",
shiny::tags$a(
is available at ",
dfeshiny::external_link(
href = paste0(
"https://explore-education-statistics.service.gov.uk/find-statistics/", # nolint: [line_length_linter]
publication_slug
),
ifelse(
link_text = ifelse(
!is.null(publication_name),
publication_name,
"Explore Education Statistics"
),
.noWS = c("after")
"explore education statistics"
)
),
". The statistical release provides additional ",
shiny::tags$a(
dfeshiny::external_link(
href = paste0(
"https://explore-education-statistics.service.gov.uk/find-statistics/", # nolint: [line_length_linter]
publication_slug, "/data-guidance"
),
"data guidance",
.noWS = c("after")
link_text = "data guidance"
),
" and ",
shiny::tags$a(
dfeshiny::external_link(
href = paste0(
"https://explore-education-statistics.service.gov.uk/find-statistics/", # nolint: [line_length_linter]
publication_slug, "#explore-data-and-files"
),
"tools to access and interogate the underling data",
.noWS = c("after")
link_text = "tools to access and interrogate the underlying data"
),
" contained in this dashboard."
)
} else {
shiny::tags$p(
"The parent statistical release of this dashboard, along with
methodological information,
is available at the following link: ",
shiny::tags$a(
is available at ",
dfeshiny::external_link(
href = alt_href,
publication_name,
.noWS = c("after")
)
link_text = publication_name
),
"."
)
},
shiny::tags$h2("Contact us"),
shiny::tags$p(
"If you have questions about the dashboard or data within it,
please contact us at ",
shiny::tags$a(
dfeshiny::external_link(
href = paste0("mailto:", team_email),
team_email, .noWS = c("after")
)
link_text = team_email,
add_warning = FALSE
),
"."
),
shiny::tags$h2("See the source code"),
shiny::tags$p(
"The source code for this dashboard is available in our ",
shiny::tags$a(
dfeshiny::external_link(
href = paste0(
repo_name
),
"GitHub repository", .noWS = c("after")
link_text = "GitHub repository"
),
"."
)
Expand Down

0 comments on commit a979802

Please sign in to comment.