Skip to content

Commit

Permalink
Add panel for MPs who vote the same
Browse files Browse the repository at this point in the history
- Given this is the most common thing, we want a box to be able to talk about it.
  • Loading branch information
ajparsons committed Jan 4, 2024
1 parent 024db95 commit 18cf2f5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions www/includes/easyparliament/templates/html/mp/votes.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,16 @@
<p>When <?= $full_name ?> starts to vote on bills, that information will appear on this page.</p>
</div>
<?php endif; ?>
<?php if ($current_member[HOUSE_TYPE_COMMONS] && count($sorted_diffs_only) == 0 && $party_member_count > 1) { ?>
<div class="panel">
<a name="votes"></a>
<h2><?= $full_name ?>&rsquo;s voting in Parliament</h2>

<p>
<?= $full_name ?> is a <?= $party ?> MP, and on the <b>vast majority</b> of issues votes the <b>same way</b> as other <?= $party ?> MPs.
</p>
</div>
<?php } ?>
<?php if ($current_member[HOUSE_TYPE_COMMONS] && count($sorted_diffs_only) > 0 && $party_member_count > 1) { ?>
<div class="panel">
<a name="votes"></a>
Expand Down

0 comments on commit 18cf2f5

Please sign in to comment.