mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Use a <caption> for the template statistics table
This is semantically more accurate because it’s describing the whole table, not just the first column. Adjusting the font-size to make it sit within the ‘In the last 7 days’ section. Adjusting the spacing because now that we have more borders we don’t need quite so much whitespace to separate different bits of the page.
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
@include core-16;
|
@include core-16;
|
||||||
display: block;
|
display: block;
|
||||||
padding: 0 0;
|
padding: 0 0;
|
||||||
margin: $gutter-half 0 $gutter 0;
|
margin: $gutter-half 0 $gutter-half 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-top: 1px solid $border-colour;
|
border-top: 1px solid $border-colour;
|
||||||
|
|
||||||
|
|||||||
@@ -57,8 +57,9 @@
|
|||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table-field-heading {
|
.table-heading {
|
||||||
font-size: 0;
|
@include core-19;
|
||||||
|
margin: 0 0 10px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table-field-heading-first {
|
.table-field-heading-first {
|
||||||
|
|||||||
@@ -9,14 +9,14 @@
|
|||||||
<div class='template-statistics-table'>
|
<div class='template-statistics-table'>
|
||||||
{% call(item, row_number) list_table(
|
{% call(item, row_number) list_table(
|
||||||
template_statistics,
|
template_statistics,
|
||||||
caption="Templates used",
|
caption="By template",
|
||||||
caption_visible=False,
|
caption_visible=True,
|
||||||
empty_message='',
|
empty_message='',
|
||||||
field_headings=[
|
field_headings=[
|
||||||
'Template',
|
'Template',
|
||||||
'Messages sent'
|
'Messages sent'
|
||||||
],
|
],
|
||||||
field_headings_visible=True
|
field_headings_visible=False
|
||||||
) %}
|
) %}
|
||||||
|
|
||||||
{% call row_heading() %}
|
{% call row_heading() %}
|
||||||
|
|||||||
Reference in New Issue
Block a user