Skip to content

Commit

Permalink
Show party explaination for former MPs
Browse files Browse the repository at this point in the history
Existing party switcher dialogue works for past tense
  • Loading branch information
ajparsons committed Apr 25, 2024
1 parent 44a54b1 commit 132a6b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/includes/easyparliament/templates/html/mp/votes.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@
</div>
<?php endif; ?>

<?php if ($current_member[HOUSE_TYPE_COMMONS] && $party_member_count > 1) { ?>
<?php if ($party_member_count > 1) { ?>
<div class="panel">
<a name="votes"></a>
<h2><?= $full_name ?>&rsquo;s voting in Parliament</h2>

<?php if ($party_switcher == true) { ?>
<?php if ($party_switcher == true or $current_member[HOUSE_TYPE_COMMONS] == false) { ?>
<p>
<?= $full_name ?> was previously a <?= $unslugified_comparison_party ?> MP, and on the <b>vast majority</b> of issues <a href="/voting-information/#party-and-individual-responsibility-for-decisions">would have followed instructions from their party</a> and voted the <b>same way</b> as <?= $unslugified_comparison_party ?> MPs.
</p>
Expand Down

0 comments on commit 132a6b2

Please sign in to comment.