Skip to content

Commit

Permalink
Merge pull request #571 from OpenUpSA/fix/no-committee-for-meeting
Browse files Browse the repository at this point in the history
Add back check for meeting committee
  • Loading branch information
paulmwatson authored Sep 5, 2024
2 parents 1df82d2 + 0d49d0c commit ca5a45c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pmg/templates/committee_layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
<ol class="breadcrumb">
{% block committee_breadcrumb %}
{% if not from_page %}
<li><a href="{{ url_for('committees') }}">Committees</a></li>
<li><a href="/committees#{% if committee.house.sphere == 'provincial' %}prov{% elif committee.ad_hoc %}adhoc{% else %}{{ committee.house.short_name }}{% endif %}">{{ committee.house.name }}</a></li>
<li><a href="{{ url_for('committees') }}">Committees</a></li>
{% if committee %}
<li><a href="/committees#{% if committee.house.sphere == 'provincial' %}prov{% elif committee.ad_hoc %}adhoc{% else %}{{ committee.house.short_name }}{% endif %}">{{ committee.house.name }}</a></li>
{% endif %}
{% else %}
<li><a href="{{ url_for('provincial_legislatures_list') }}">Provincial Legislatures</a></li>
<li><a href="{{ url_for('provincial_legislatures_detail', slug=from_page) }}">{{ committee.house.name }}</a></li>
<li><a href="{{ url_for('provincial_committees', slug=from_page) }}">Committees</a></li>
<li><a href="{{ url_for('provincial_legislatures_list') }}">Provincial Legislatures</a></li>
<li><a href="{{ url_for('provincial_legislatures_detail', slug=from_page) }}">{{ committee.house.name }}</a></li>
<li><a href="{{ url_for('provincial_committees', slug=from_page) }}">Committees</a></li>
{% endif %}
{% endblock %}
</ol>
Expand Down

0 comments on commit ca5a45c

Please sign in to comment.