Add letter usage to usage page.

Still need to add the summary info.
This commit is contained in:
Rebecca Law
2017-12-15 17:28:52 +00:00
parent ef55feba36
commit 43747bd1ea
2 changed files with 23 additions and 6 deletions

View File

@@ -81,7 +81,7 @@
currency="£",
smallest=True
) }}
<ul>
<ul>
{% if month.free %}
<li class="tabular-numbers">{{ "{:,}".format(month.free) }} free text messages</li>
{% endif %}
@@ -93,6 +93,15 @@
<li aria-hidden="true"></li>
{% endif %}
</ul>
<ul>
{{ month.letters }}
{% for letter in month.letters%}
{% if letter[0] %}
<li class="tabular-numbers">{{ letter[0]}} letters at {{ ' {:.0f}p'.format(letter[1] * 100) }}
</li>
{% endif %}
{% endfor %}
</ul>
{% endcall %}
{% endcall %}
</div>