|
19 | 19 | {% block content %}
|
20 | 20 | <div class="govuk-grid-row">
|
21 | 21 | <div class="govuk-grid-column-full">
|
| 22 | + <h1 class="govuk-heading-l">{{h1_value}}</h1> |
22 | 23 | <span class="govuk-caption-m">Data product</span>
|
23 |
| - <h1 class="govuk-heading-l">{{result.name}}</h1> |
| 24 | + <h2 class="govuk-heading-m">{{result.name}}</h2> |
24 | 25 | </div>
|
25 | 26 | <div class="govuk-grid-row">
|
26 | 27 | <div class="govuk-grid-column-two-thirds">
|
27 | 28 | <div class="summary-card">
|
28 |
| - <h2 class="govuk-heading-s govuk-!-margin-top-3"> |
| 29 | + <h3 class="govuk-heading-s govuk-!-margin-top-3"> |
29 | 30 | Description
|
30 |
| - </h2> |
| 31 | + </h3> |
31 | 32 | <div class="govuk-body">
|
32 | 33 | {{result.description|markdown:3}}
|
33 | 34 | </div>
|
@@ -71,36 +72,36 @@ <h2 class="govuk-heading-s govuk-!-margin-top-3">
|
71 | 72 | <div class="govuk-grid-row">
|
72 | 73 | <div class="govuk-grid-column-full">
|
73 | 74 | {% if tables %}
|
74 |
| - <table class="govuk-table"> |
75 |
| - <caption class="govuk-table__caption govuk-table__caption--m">Data product content</caption> |
76 |
| - <thead class="govuk-table__head"> |
77 |
| - <tr class="govuk-table__row"> |
78 |
| - <th scope="col" class="govuk-table__header app-custom-class">Table name</th> |
79 |
| - <th scope="col" class="govuk-table__header app-custom-class">Description</th> |
80 |
| - <th scope="col" class="govuk-table__header app-custom-class">Schema details</th> |
81 |
| - </tr> |
82 |
| - </thead> |
83 |
| - <tbody class="govuk-table__body"> |
84 |
| - {% for table in tables %} |
85 |
| - {% with table_type=table.type|lower %} |
86 |
| - <tr class="govuk-table__row"> |
87 |
| - <td class="govuk-table__cell">{{table.name}}</td> |
88 |
| - <td class="govuk-table__cell"> |
89 |
| - {% if table.description|length > 200 %} |
90 |
| - {{ table.description|slice:":200"|add:"..."|markdown:3 }} |
91 |
| - {% else %} |
92 |
| - {{ table.description|markdown:3 }} |
93 |
| - {% endif %} |
94 |
| - </td> |
95 |
| - <td class="govuk-table__cell"> <a href="{% url 'home:details' result_type=table_type id=table.urn %}" class="govuk-link">Table details</a></td> |
96 |
| - </tr> |
97 |
| - {% endwith %} |
98 |
| - {% endfor %} |
99 |
| - </tbody> |
100 |
| - </table> |
| 75 | + <table class="govuk-table"> |
| 76 | + <caption class="govuk-table__caption govuk-table__caption--m">Data product content</caption> |
| 77 | + <thead class="govuk-table__head"> |
| 78 | + <tr class="govuk-table__row"> |
| 79 | + <th scope="col" class="govuk-table__header app-custom-class">Table name</th> |
| 80 | + <th scope="col" class="govuk-table__header app-custom-class">Description</th> |
| 81 | + <th scope="col" class="govuk-table__header app-custom-class">Schema details</th> |
| 82 | + </tr> |
| 83 | + </thead> |
| 84 | + <tbody class="govuk-table__body"> |
| 85 | + {% for table in tables %} |
| 86 | + {% with table_type=table.type|lower %} |
| 87 | + <tr class="govuk-table__row"> |
| 88 | + <td class="govuk-table__cell">{{table.name}}</td> |
| 89 | + <td class="govuk-table__cell"> |
| 90 | + {% if table.description|length > 200 %} |
| 91 | + {{ table.description|slice:":200"|add:"..."|markdown:3 }} |
| 92 | + {% else %} |
| 93 | + {{ table.description|markdown:3 }} |
| 94 | + {% endif %} |
| 95 | + </td> |
| 96 | + <td class="govuk-table__cell"> <a href="{% url 'home:details' result_type=table_type id=table.urn %}" class="govuk-link">Table details</a></td> |
| 97 | + </tr> |
| 98 | + {% endwith %} |
| 99 | + {% endfor %} |
| 100 | + </tbody> |
| 101 | + </table> |
101 | 102 | {% else %}
|
102 |
| - <h2 class="govuk-heading-m">Data product content</h2> |
103 |
| - <p class="govuk-body">This data product is missing table information.</p> |
| 103 | + <h2 class="govuk-heading-m">Data product content</h2> |
| 104 | + <p class="govuk-body">This data product is missing table information.</p> |
104 | 105 | {% endif %}
|
105 | 106 | </div>
|
106 | 107 | </div>
|
|
0 commit comments