Skip to content

Commit

Permalink
Link from agreements to help on agreements
Browse files Browse the repository at this point in the history
- Also don't render them if we don't need to for a policy
  • Loading branch information
ajparsons committed Mar 14, 2024
1 parent 14c861b commit d2292cb
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions www/includes/easyparliament/templates/html/mp/divisions.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,21 +179,21 @@
</ul>
<?php } ?>

<a name="scoring-agreements"></a>
<h3 class="policy-votes-list-header">Scoring Agreements</h3>
<p>Agreements are when Parliament takes a decision without holding a vote.</p>
<p>This does not necessarily mean universal approval, but does mean there were no (or few) objections made to the decision being made.</p>


<?php if ($agreements_scoring) { ?>

<a name="scoring-agreements"></a>
<h3 class="policy-votes-list-header">Scoring Agreements</h3>
<p>Agreements are when Parliament <a href="/voting-information/#agreements-and-divisions">takes a decision without holding a vote.</a></p> <p>This does not necessarily mean universal approval, but does mean there were no (or few) objections made to the decision being made.</p>


<p>The following agreements were made while this member was elected:</p>
<ul class="vote-descriptions policy-votes">
<?php foreach ($agreements_scoring as $division) {
include('_agreement_description.php');
$displayed_votes = true;
} ?>
</ul>
<?php } else { ?>
<p>No scoring agreements are part of this policy while this member was elected.</p>
<?php } ?>
<?php if ($divisions_informative) { ?>
<a name="informative"></a>
Expand All @@ -207,20 +207,20 @@
</ul>
<?php } ?>

<a name="informative-agreements"></a>
<h3 class="policy-votes-list-header">Informative Agreements</h3>
<p>Agreements are when Parliament takes a decision without holding a vote.</p>
<p>This does not necessarily mean universal approval, but does mean there were no (or few) objections made to the decision being made.</p>


<?php if ($agreements_informative) { ?>

<a name="informative-agreements"></a>
<h3 class="policy-votes-list-header">Informative Agreements</h3>
<p>Agreements are when Parliament <a href="/voting-information/#agreements-and-divisions">takes a decision without holding a vote.</a></p>
<p>This does not necessarily mean universal approval, but does mean there were no (or few) objections made to the decision being made.</p>

<ul class="vote-descriptions policy-votes">
<?php foreach ($agreements_informative as $division) {
include('_agreement_description.php');
$displayed_votes = true;
} ?>
</ul>
<?php } else { ?>
<p>No informative agreements are part of this policy while this member was elected.</p>
<?php } ?>
<div class="policy-votes-list-footer">
<p class="voting-information-provenance">
Expand Down

0 comments on commit d2292cb

Please sign in to comment.