-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DRY up views by moving metadata logic into module #216
Commits on Dec 22, 2016
-
Simplify fatality notice template
* Move image definition into presenter so the standard sidebar_with_body template can be used * Add alt text to the image – the image has value and the alt text is useful to describe what the crest is
Configuration menu - View commit details
-
Copy full SHA for 26d259f - Browse repository at this point
Copy the full SHA 26d259fView commit details -
* Provide standard metadata parameters to presenter * Simplify view significantly * Make it harder to provide wrong details to metadata, or to forget something
Configuration menu - View commit details
-
Copy full SHA for 59ead3b - Browse repository at this point
Copy the full SHA 59ead3bView commit details -
Make case studies consistent with other formats
* Use same structure for published/updated as other formats, remove short_history * Access body in the same way as other formats in presenter * Include metadata module and use methods * Provide a high level text_direction method for all presenters
Configuration menu - View commit details
-
Copy full SHA for 018d363 - Browse repository at this point
Copy the full SHA 018d363View commit details -
Switch detailed guides to use metadata module
* Include metadata method in national applicability so that including the module gets the necessary metadata automatically
Configuration menu - View commit details
-
Copy full SHA for da57707 - Browse repository at this point
Copy the full SHA da57707View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3eafe4c - Browse repository at this point
Copy the full SHA 3eafe4cView commit details -
Remove 'withdrawable' from format presenters
The module is included in the base content item presenter.
Configuration menu - View commit details
-
Copy full SHA for 70072d1 - Browse repository at this point
Copy the full SHA 70072d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for d17547c - Browse repository at this point
Copy the full SHA d17547cView commit details -
Configuration menu - View commit details
-
Copy full SHA for f313753 - Browse repository at this point
Copy the full SHA f313753View commit details -
Configuration menu - View commit details
-
Copy full SHA for 543497c - Browse repository at this point
Copy the full SHA 543497cView commit details -
Switch statistical announcements to metadata module
* Stop rendering links to policy_areas, they are being deprecated, no other format links to them * Use standard `from` and `part_of` methods * Render links to topics, policies, etc as standard * Update tests to query the `other` part of the hash metadata returns * Format doesn’t currently provide an emphasised_organisations array, protect against it not being present
Configuration menu - View commit details
-
Copy full SHA for 660933e - Browse repository at this point
Copy the full SHA 660933eView commit details