Skip to content

Commit

Permalink
Re-add stale data warning.
Browse files Browse the repository at this point in the history
Add box warning flagging we're now out of date while we fix that.
  • Loading branch information
ajparsons committed Aug 31, 2023
1 parent cb79cc6 commit 357d43e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php if (in_array(HOUSE_TYPE_COMMONS, $houses)): ?>
<a name="stale-data-warning"></a>
<div class="panel panel--highlight">

<p>There are currently votes on relevant topics that are not included in the summaries below. We are working on bringing these records up to date over the autumn. </p>

</div>
<?php endif; ?>
2 changes: 2 additions & 0 deletions www/includes/easyparliament/templates/html/mp/votes.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
</div>
<?php endif; ?>

<?php include('_stale_data_panel.php'); ?>

<?php if ($current_party_comparison <> $data["comparison_party"]): ?>
<?php include('_cross_party_mp_panel.php'); ?>
<?php endif; ?>
Expand Down

0 comments on commit 357d43e

Please sign in to comment.