mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-02 07:27:35 -04:00
Merge pull request #681 from GSA/666-fix-template-bar-length
Removing the section that calculated the count bar for templates
This commit is contained in:
@@ -224,3 +224,8 @@ td.table-empty-message {
|
||||
outline-offset: units(1);
|
||||
}
|
||||
}
|
||||
|
||||
.spark-bar-bar {
|
||||
font-size: units(3);
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
@@ -556,7 +556,8 @@ def test_should_show_monthly_breakdown_of_template_usage(
|
||||
assert ' '.join(table_rows[0].text.split()) == (
|
||||
'My first template '
|
||||
'Text message template '
|
||||
'2'
|
||||
'2 '
|
||||
'messages sent'
|
||||
)
|
||||
|
||||
assert len(table_rows) == len(['October'])
|
||||
|
||||
Reference in New Issue
Block a user