Skip to content

Commit

Permalink
Merge pull request #93 from koenlam/main
Browse files Browse the repository at this point in the history
Added version
  • Loading branch information
koenlam authored Jul 12, 2024
2 parents 076aaf9 + 1a9f768 commit 1fd0d66
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
6 changes: 3 additions & 3 deletions code/ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ body <- dashboardBody(
# tab content
tabItem(tabName = "contact",
box(status = "primary",
includeMarkdown(lang[["loc_contact.Rmd"]])
)
)
includeMarkdown(lang[["loc_contact.Rmd"]]),
includeMarkdown(paste0("### Dashboard ", lang[["version"]], "\n", dashboard_version))
))

)
)
Expand Down
5 changes: 4 additions & 1 deletion lang/en/lang_ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,7 @@ lang[["label_neighbourhood"]] <- "Neighborhood"


# License
lang[["license_text"]] <- "This figure was created by Helen Lam, Bastian Ravesteijn, and Coen van de Kraats (Erasmus School of Economics), with support from Kenniscentrum Ongelijkheid. The figure and underlying data are available under a Creative Commons BY-NC-SA 4.0 license, conditional upon mentioning the authors and the website opportunitygap.nl. If you have any questions, please contact [email protected]"
lang[["license_text"]] <- "This figure was created by Helen Lam, Bastian Ravesteijn, and Coen van de Kraats (Erasmus School of Economics), with support from Kenniscentrum Ongelijkheid. The figure and underlying data are available under a Creative Commons BY-NC-SA 4.0 license, conditional upon mentioning the authors and the website opportunitygap.nl. If you have any questions, please contact [email protected]"

# Version
lang[["version"]] <- "version"
5 changes: 4 additions & 1 deletion lang/nl/lang_ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,7 @@ lang[["label_neighbourhood"]] <- "Wijk"


# License
lang[["license_text"]] <- "Deze figuur is gemaakt door Helen Lam, Bastian Ravesteijn en Coen van de Kraats (Erasmus School of Economics), met ondersteuning van Kenniscentrum Ongelijkheid. De figuur en onderliggende data zijn beschikbaar volgens een Creative Commons BY-NC-SA 4.0 licentie, altijd onder vermelding van auteurs en de website ongelijkheidincijfers.amsterdam. Bij vragen kunt u contact opnemen met [email protected]"
lang[["license_text"]] <- "Deze figuur is gemaakt door Helen Lam, Bastian Ravesteijn en Coen van de Kraats (Erasmus School of Economics), met ondersteuning van Kenniscentrum Ongelijkheid. De figuur en onderliggende data zijn beschikbaar volgens een Creative Commons BY-NC-SA 4.0 licentie, altijd onder vermelding van auteurs en de website ongelijkheidincijfers.amsterdam. Bij vragen kunt u contact opnemen met [email protected]"

# Version
lang[["version"]] <- "versie"
6 changes: 5 additions & 1 deletion startup.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

## Dashboard version
dashboard_version <- system(r"(git log -1 --format="%cd")", intern=TRUE)
if (is_empty(dashboard_version)) {
dashboard_version <- "N/A"
}

#### LOAD DATA ####
outcome_dat <- read_excel(lang[["loc_outome_table.xlsx"]], sheet = "outcome")
Expand Down

0 comments on commit 1fd0d66

Please sign in to comment.