From 2c2b1ccb5801abcaaca253a68a89704b8ca662dd Mon Sep 17 00:00:00 2001 From: Alex Parsons Date: Fri, 5 Jul 2024 06:10:41 +0000 Subject: [PATCH] Add mobile link to current rep --- markdown/post-election.md | 3 +++ .../html/postcode/ge2024-post-election.php | 14 +++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/markdown/post-election.md b/markdown/post-election.md index f05718e1ff..cbcd343f55 100644 --- a/markdown/post-election.md +++ b/markdown/post-election.md @@ -1,5 +1,8 @@ # The polls are closed! +{{ rep_link }} + + The UK general election is now over. Through Thursday night and into Friday, the votes will be counted, winners announced - and we will be loading the new MPs into TheyWorkForYou. diff --git a/www/includes/easyparliament/templates/html/postcode/ge2024-post-election.php b/www/includes/easyparliament/templates/html/postcode/ge2024-post-election.php index 0401f0b882..348bab2208 100644 --- a/www/includes/easyparliament/templates/html/postcode/ge2024-post-election.php +++ b/www/includes/easyparliament/templates/html/postcode/ge2024-post-election.php @@ -12,6 +12,18 @@ + + +

See your current

+ text($text); $html = str_replace("{{ form }}", $form, $html); - +$html = str_replace("{{ rep_link }}", $rep_link , $html); echo $html; ?>