Skip to content

Commit

Permalink
[Scorecards 2023] Fix broken Section links in homepage column headers
Browse files Browse the repository at this point in the history
  • Loading branch information
zarino committed Oct 18, 2023
1 parent 85b28ac commit ec2569b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions scoring/templates/scoring/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,43 +96,43 @@ <h3 class="d-inline-block">
</th>
<th scope="col" class="pb-0">
<div class="d-flex flex-row-reverse justify-content-end">
<a class="text-decoration-none fw-bold mt-1 link-category-1" href="{% url 'scoring:methodology' %}#sec-gov">Building &amp; Heating</a>
<a class="text-decoration-none fw-bold mt-1 link-category-1" href="{% url 'scoring:section' 's1_b_h' %}">Building &amp; Heating</a>
<button class="js-sort-table btn btn-outline-primary sort-icon align-items-start is--category-1 {% if sorted_by == 's1_b_h' %} is-sorted-descending{% endif %}" title="Sort highest first"></button>
</div>
</th>
<th scope="col" class="pb-0">
<div class="d-flex flex-row-reverse justify-content-end">
<a class="text-decoration-none fw-bold mt-1 link-category-2" href="{% url 'scoring:methodology' %}#sec-ma">Transport</a>
<a class="text-decoration-none fw-bold mt-1 link-category-2" href="{% url 'scoring:section' 's2_tran' %}">Transport</a>
<button class="js-sort-table btn btn-outline-primary sort-icon align-items-start is--category-2 {% if sorted_by == 's2_tran' %} is-sorted-descending{% endif %}" title="Sort highest first"></button>
</div>
</th>
<th scope="col" class="pb-0">
<div class="d-flex flex-row-reverse justify-content-end">
<a class="text-decoration-none fw-bold mt-1 link-category-3" href="{% url 'scoring:methodology' %}#sec-ca">Planning &amp; Land Use</a>
<a class="text-decoration-none fw-bold mt-1 link-category-3" href="{% url 'scoring:section' 's3_p_lu' %}">Planning &amp; Land Use</a>
<button class="js-sort-table btn btn-outline-primary sort-icon align-items-start is--category-3 {% if sorted_by == 's3_p_lu' %} is-sorted-descending{% endif %}" title="Sort highest first"></button>
</div>
</th>
<th scope="col" class="pb-0">
<div class="d-flex flex-row-reverse justify-content-end">
<a class="text-decoration-none fw-bold mt-1 link-category-4" href="{% url 'scoring:methodology' %}#sec-coms">Governance &amp; Finance</a>
<a class="text-decoration-none fw-bold mt-1 link-category-4" href="{% url 'scoring:section' 's4_g_f' %}">Governance &amp; Finance</a>
<button class="js-sort-table btn btn-outline-primary sort-icon align-items-start is--category-4 {% if sorted_by == 's4_g_f' %} is-sorted-descending{% endif %}" title="Sort highest first"></button>
</div>
</th>
<th scope="col" class="pb-0">
<div class="d-flex flex-row-reverse justify-content-end">
<a class="text-decoration-none fw-bold mt-1 link-category-5" href="{% url 'scoring:methodology' %}#sec-mset">Biodiversity</a>
<a class="text-decoration-none fw-bold mt-1 link-category-5" href="{% url 'scoring:section' 's5_bio' %}">Biodiversity</a>
<button class="js-sort-table btn btn-outline-primary sort-icon align-items-start is--category-5 {% if sorted_by == 's5_bio' %} is-sorted-descending{% endif %}" title="Sort highest first"></button>
</div>
</th>
<th scope="col" class="pb-0">
<div class="d-flex flex-row-reverse justify-content-end">
<a class="text-decoration-none fw-bold mt-1 link-category-6" href="{% url 'scoring:methodology' %}#sec-co">Collaboration &amp; Engagement</a>
<a class="text-decoration-none fw-bold mt-1 link-category-6" href="{% url 'scoring:section' 's6_c_e' %}">Collaboration &amp; Engagement</a>
<button class="js-sort-table btn btn-outline-primary sort-icon align-items-start is--category-6 {% if sorted_by == 's6_c_e' %} is-sorted-descending{% endif %}" title="Sort highest first"></button>
</div>
</th>
<th scope="col" class="pb-0">
<div class="d-flex flex-row-reverse justify-content-end">
<a class="text-decoration-none fw-bold mt-1 link-category-7" href="{% url 'scoring:methodology' %}#sec-dsi">Waste Reduction &amp; Food</a>
<a class="text-decoration-none fw-bold mt-1 link-category-7" href="{% url 'scoring:section' 's7_wr_f' %}">Waste Reduction &amp; Food</a>
<button class="js-sort-table btn btn-outline-primary sort-icon align-items-start is--category-7 {% if sorted_by == 's7_wr_f' %} is-sorted-descending{% endif %}" title="Sort highest first"></button>
</div>
</th>
Expand Down
10 changes: 5 additions & 5 deletions scoring/templates/scoring/home_combined.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,31 @@
</th>
<th scope="col" class="pb-0">
<div class="d-flex flex-row-reverse justify-content-end">
<a class="text-decoration-none fw-bold mt-1 link-category-1" href="{% url 'scoring:methodology' %}#sec-gov">Buildings &amp; Heating &amp; Green Skills</a>
<a class="text-decoration-none fw-bold mt-1 link-category-1" href="{% url 'scoring:section' 's1_b_h_gs_ca' %}">Buildings &amp; Heating &amp; Green Skills</a>
<button class="js-sort-table btn btn-outline-primary sort-icon align-items-start is--category-1 {% if sorted_by == 's1_b_h_gs_ca' %} is-sorted-descending{% endif %}" title="Sort highest first"></button>
</div>
</th>
<th scope="col" class="pb-0">
<div class="d-flex flex-row-reverse justify-content-end">
<a class="text-decoration-none fw-bold mt-1 link-category-2" href="{% url 'scoring:methodology' %}#sec-ma">Transport</a>
<a class="text-decoration-none fw-bold mt-1 link-category-2" href="{% url 'scoring:section' 's2_tran_ca' %}">Transport</a>
<button class="js-sort-table btn btn-outline-primary sort-icon align-items-start is--category-2 {% if sorted_by == 's2_tran_ca' %} is-sorted-descending{% endif %}" title="Sort highest first"></button>
</div>
</th>
<th scope="col" class="pb-0">
<div class="d-flex flex-row-reverse justify-content-end">
<a class="text-decoration-none fw-bold mt-1 link-category-3" href="{% url 'scoring:methodology' %}#sec-ca">Planning &amp; Biodiversity</a>
<a class="text-decoration-none fw-bold mt-1 link-category-3" href="{% url 'scoring:section' 's3_p_b_ca' %}">Planning &amp; Biodiversity</a>
<button class="js-sort-table btn btn-outline-primary sort-icon align-items-start is--category-3 {% if sorted_by == 's3_p_b_ca' %} is-sorted-descending{% endif %}" title="Sort highest first"></button>
</div>
</th>
<th scope="col" class="pb-0">
<div class="d-flex flex-row-reverse justify-content-end">
<a class="text-decoration-none fw-bold mt-1 link-category-4" href="{% url 'scoring:methodology' %}#sec-coms">Governance &amp; Finance</a>
<a class="text-decoration-none fw-bold mt-1 link-category-4" href="{% url 'scoring:section' 's4_g_f_ca' %}">Governance &amp; Finance</a>
<button class="js-sort-table btn btn-outline-primary sort-icon align-items-start is--category-4 {% if sorted_by == 's4_g_f_ca' %} is-sorted-descending{% endif %}" title="Sort highest first"></button>
</div>
</th>
<th scope="col" class="pb-0">
<div class="d-flex flex-row-reverse justify-content-end">
<a class="text-decoration-none fw-bold mt-1 link-category-6" href="{% url 'scoring:methodology' %}#sec-co">Collaboration &amp; Engagement</a>
<a class="text-decoration-none fw-bold mt-1 link-category-6" href="{% url 'scoring:section' 's5_c_e_ca' %}">Collaboration &amp; Engagement</a>
<button class="js-sort-table btn btn-outline-primary sort-icon align-items-start is--category-5 {% if sorted_by == 's5_c_e_ca' %} is-sorted-descending{% endif %}" title="Sort highest first"></button>
</div>
</th>
Expand Down

0 comments on commit ec2569b

Please sign in to comment.