diff --git a/app/helpers/content_helper.rb b/app/helpers/content_helper.rb index 3e44c811c1..dea14d134c 100644 --- a/app/helpers/content_helper.rb +++ b/app/helpers/content_helper.rb @@ -8,4 +8,9 @@ def article_classes(front_matter) def display_content_errors? Rails.application.config.x.display_content_errors end + + def value(key) + Value.data[key.to_s] + end + alias_method :v, :value end diff --git a/app/views/pages/values.html.erb b/app/views/pages/values.html.erb index 329a08d40b..3c326758c4 100644 --- a/app/views/pages/values.html.erb +++ b/app/views/pages/values.html.erb @@ -1,15 +1,27 @@
-
- $<%= key %>$
-
+ Key
|
- <%= value %> + Value |
+
+ $<%= key %>$
+
+ |
+ + <%= value %> + | +
+ The opening date for applications is <%= v :dates_example_opening %>. +
+``` + +A list of the current values available on the site can be viewed at the `/values` endpoint. + ## Creating a Blog Post Blog posts should be written in Markdown format using the following template as a guide: @@ -574,4 +610,4 @@ You can find everywhere a page is linked to by: ## Resolving comments People can add comments to pull requests in Github which makes it easier to see feedback and keep track of changes. You can also tag people and reply to their comments. -Once you've addressed a comment click on resolve. This hides it from the conversation making it easier to keep track of what's been updated. \ No newline at end of file +Once you've addressed a comment click on resolve. This hides it from the conversation making it easier to keep track of what's been updated.