Skip to content

Commit

Permalink
Merge pull request #568 from OpenUpSA/move-renamed-committees-link
Browse files Browse the repository at this point in the history
Hide renamed commitee links on meeting pages
  • Loading branch information
desafinadude authored Sep 5, 2024
2 parents faedbc7 + ee9cee2 commit 5c54bbb
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions pmg/templates/committee_layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{% block page %}
<div class="row">
<div class="col-sm-8">
<header class="committee-header">
<header class="committee-header mb-3">
{% block committee_title %}
{% if committee %}
<div class="row">
Expand All @@ -45,23 +45,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>
{% endif %}
<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 5c54bbb

Please sign in to comment.