Removing the section that calculated the count bar for templates and simplified

This commit is contained in:
Jonathan Bobel
2023-08-04 14:23:19 -04:00
parent d430bea3ee
commit d9e5709a0f
3 changed files with 13 additions and 9 deletions

View File

@@ -183,16 +183,14 @@
id=None
) %}
{% call field(align='right') %}
{% if id %}
<style nonce="{{ csp_nonce() }}">
#{{id}} .spark-bar-bar {
width: {{ count / max_count * 100 }}%;
}
</style>
{% endif %}
<span {% if id %}id="{{ id }}"{% endif %} class="spark-bar">
<span class="spark-bar-bar">
{{ '{:,.0f}'.format(count) }}
{{ '{:,.0f}'.format(count) }}
{% if count == 1 -%}
message sent
{% else -%}
messages sent
{% endif %}
</span>
</span>
{% endcall %}