Skip to content

Commit

Permalink
Hide renamed commitee links on meeting pages
Browse files Browse the repository at this point in the history
  • Loading branch information
desafinadude committed Sep 5, 2024
1 parent 501d8d2 commit bafdc98
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions pmg/templates/committee_layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{% block page %}
<div class="row">
<div class="col-sm-8">
<header class="committee-header">
<header class="committee-header mb-3">
{% block committee_title %}
<div class="row">
{% if not committee.premium %}
Expand All @@ -35,22 +35,24 @@ <h4 class="light-red">{{ committee.house.name }}</h4>
{% else %}
<h4 class="light-red">{{ committee.house.name }} Committee</h4>
{% endif %}
<div class="{% if not committee.about %}no-about{% endif %}">{% include '_social_sharing.html' %}</div>
<div class="{% if not committee.about %}no-about{% endif %} mb-2">{% include '_social_sharing.html' %}</div>
{% endblock %}
</header>

<!-- 7th parliament changed committees. Link to the old committees -->
<div class="renamed-committee-links">
{% if committee.id == 95 %}
This committee was previously part of <strong>Agriculture, Land Reform and Rural Development</strong>.<br/>Historical meetings are available in the <strong><a href="/committee/37/">Agriculture</a></strong> committee.
{% endif %}
{% if committee.id == 23 %}
This committee was previously part of <strong>Higher Education, Science and Innovation</strong>.<br/>Historical meetings are available in the <strong><a href="/committee/64/">Higher Education</a></strong> committee.
{% endif %}
{% if committee.id == 40 %}
This committee was previously part of <strong>Justice and Correctional Services</strong>.<br/>Historical meetings are available in the <strong><a href="/committee/38/">Justice and Constitutional Development</a></strong> committee.
{% endif %}
</div>
{% if committee.about %}
<div class="renamed-committee-links">
{% if committee.id == 95 %}
This committee was previously part of <strong>Agriculture, Land Reform and Rural Development</strong>.<br/>Historical meetings are available in the <strong><a href="/committee/37/">Agriculture</a></strong> committee.
{% endif %}
{% if committee.id == 23 %}
This committee was previously part of <strong>Higher Education, Science and Innovation</strong>.<br/>Historical meetings are available in the <strong><a href="/committee/64/">Higher Education</a></strong> committee.
{% endif %}
{% if committee.id == 40 %}
This committee was previously part of <strong>Justice and Correctional Services</strong>.<br/>Historical meetings are available in the <strong><a href="/committee/38/">Justice and Constitutional Development</a></strong> committee.
{% endif %}
</div>
{% endif %}
<!-- end link to old committee -->

<div class="committee-page">
Expand Down

0 comments on commit bafdc98

Please sign in to comment.