Skip to content

Commit 314708c

Browse files
authored
Merge pull request #1142 from alphagov/2089-date-of-test
2089: Use date of test instead of date created on detailed QA cases dashboard
2 parents 891a8f7 + 3b336a5 commit 314708c

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

  • accessibility_monitoring_platform/apps/dashboard/templates/dashboard/detailed

accessibility_monitoring_platform/apps/dashboard/templates/dashboard/detailed/generic_table.html

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ <h2 id="cases-status-{{id}}" class="govuk-heading-m">
1313
<table class="govuk-table">
1414
<thead class="govuk-table__head">
1515
<tr class="govuk-table__row">
16-
<th scope="col" class="govuk-table__header amp-width-15-percent">Date created</th>
16+
<th scope="col" class="govuk-table__header amp-width-15-percent">
17+
{% if filter == 'qa-filter' and type == 'detailed' %}
18+
Date of test
19+
{% else %}
20+
Date created
21+
{% endif %}
22+
</th>
1723
<th scope="col" class="govuk-table__header amp-width-one-quarter">Case</th>
1824
<th scope="col" class="govuk-table__header amp-width-one-quarter">Full URL</th>
1925
<th scope="col" class="govuk-table__header amp-width-one-quarter">Auditor</th>
@@ -22,7 +28,13 @@ <h2 id="cases-status-{{id}}" class="govuk-heading-m">
2228
<tbody class="govuk-table__body">
2329
{% for case in cases %}
2430
<tr class="govuk-table__row ">
25-
<th scope="row" class="govuk-table__header amp-width-15-percent govuk-!-font-weight-regular">{{ case.created|amp_date_trunc }}</th>
31+
<th scope="row" class="govuk-table__header amp-width-15-percent govuk-!-font-weight-regular">
32+
{% if filter == 'qa-filter' and type == 'detailed' %}
33+
{{ case.initial_test_start_date|amp_date_trunc }}
34+
{% else %}
35+
{{ case.created|amp_date_trunc }}
36+
{% endif %}
37+
</th>
2638
<td class="govuk-table__cell amp-width-one-quarter">
2739
<a href="{{ case.get_absolute_url }}" class="govuk-link">{{ case.organisation_name|truncatechars:25 }}</a>
2840
</td>
@@ -38,4 +50,4 @@ <h2 id="cases-status-{{id}}" class="govuk-heading-m">
3850
{% endfor %}
3951
</tbody>
4052
</table>
41-
</div>
53+
</div>

0 commit comments

Comments
 (0)