Chris Hill-Scott
18d11aa013
Move code for rendering messages/templates → utils
...
Utils is better structured to handle the logic of what thing to show
for what template type, especially now that what we show for different
template types in different contexts has diverged significantly.
See https://github.com/alphagov/notifications-utils/commit/6b39c1a for
an example of this code moving into utils
Depends on and implements:
https://github.com/alphagov/notifications-utils/pull/84
The main reason for doing this is to get Paul’s fix for the misaligned
CSV columns: https://github.com/alphagov/notifications-utils/pull/87
2016-12-05 12:11:54 +00:00
Chris Hill-Scott
b84d06bd68
Move parameters out of the …_message components
...
This commit refactors the `email_message` and `sms_message` UI components to
take fewer parameters.
`name`, `edit_link` and anything to do with versions are identical for both
text and email messages so I’ve moved them to the pages where you choose a
template or see the versions.
This commit also tidies up the wording and styling of the template history
stuff.
2016-05-27 11:08:40 +01:00
Nicholas Staples
83f25cd89b
Beautify the template version links and template link page.
2016-05-20 13:58:16 +01:00
Rebecca Law
fcf277c413
Merge branch 'master' into template_history_view
...
Conflicts:
requirements.txt
2016-05-13 17:30:33 +01:00
Nicholas Staples
64e7a7b010
Update all dates to use utc, only in the template is it converted to british time.
...
Template versions and template version pages added.
Fix merge changes.
2016-05-12 21:34:39 +01:00