mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 08:28:15 -04:00
Fix count of columns on breaking change page
For some reason we were rebuilding `new_template` as a dictionary, without the `placeholders` attribute. This meant that we were never actually counting the placeholders, just counting the length of `None` and adding 1 to it. So this commit fixes that, beefs up the tests, and makes sure that everything is pluralised properly.
This commit is contained in:
@@ -41,7 +41,8 @@
|
||||
|
||||
<p>
|
||||
When you send messages using this template you’ll need
|
||||
{{ new_template.placeholders|length + 1 }} columns of data:
|
||||
{{ new_template.placeholders|length + 1 }}
|
||||
column{{ 's' if new_template.placeholders|length > 0 else '' }} of data:
|
||||
</p>
|
||||
|
||||
<div class="spreadsheet">
|
||||
|
||||
Reference in New Issue
Block a user