Skip to content

Commit

Permalink
Include chamber in UK homepage votes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Oct 9, 2024
1 parent f83a9d3 commit 16710e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions classes/Divisions.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ public function getRecentDebatesWithDivisions($number = 20, $majors = null) {
'url' => $url->generate() . $anchor,
'title' => "$debate[section_body] : $debate[subsection_body]",
'date' => $debate['hdate'],
'major' => $debate['major'],
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
</a>
</h3>
<p class="meta">
<?php if ($debate['major'] == 1) { ?>Commons, <?php } ?>
<?php if ($debate['major'] == 101) { ?>Lords, <?php } ?>
<?= format_date($debate['date'], LONGERDATEFORMAT) ?>
</p>
</li>
Expand Down

0 comments on commit 16710e4

Please sign in to comment.