From 6b87344f54c3fefb6c8bab33451b22c22ad572bc Mon Sep 17 00:00:00 2001 From: Alex Parsons Date: Fri, 23 Feb 2024 16:37:30 +0000 Subject: [PATCH] Abstract person navigation - Enable votes link for all except NIA and LA --- locale/cy_GB.UTF-8/LC_MESSAGES/TheyWorkForYou.po | 4 +--- www/docs/mp/index.php | 1 + .../templates/html/mp/_person_navigation.php | 11 +++++++++++ .../easyparliament/templates/html/mp/profile.php | 8 +------- .../easyparliament/templates/html/mp/recent.php | 8 +------- .../easyparliament/templates/html/mp/votes.php | 8 +------- 6 files changed, 16 insertions(+), 24 deletions(-) create mode 100644 www/includes/easyparliament/templates/html/mp/_person_navigation.php diff --git a/locale/cy_GB.UTF-8/LC_MESSAGES/TheyWorkForYou.po b/locale/cy_GB.UTF-8/LC_MESSAGES/TheyWorkForYou.po index 84b04485d5..79d73b0cca 100644 --- a/locale/cy_GB.UTF-8/LC_MESSAGES/TheyWorkForYou.po +++ b/locale/cy_GB.UTF-8/LC_MESSAGES/TheyWorkForYou.po @@ -1798,9 +1798,7 @@ msgstr "Derbyn diweddariadau e-bost" msgid "That name is not unique. Please select from the following:" msgstr " Nid yw'r enw hwnnw'n unigryw. Dewiswch o'r canlynol:" -#: www/includes/easyparliament/templates/html/mp/profile.php:21 -#: www/includes/easyparliament/templates/html/mp/recent.php:11 -msgid "Voting Record" +msgid "Voting Summary" msgstr "Record bleidleisio" #: www/includes/easyparliament/templates/html/mp/profile.php:33 diff --git a/www/docs/mp/index.php b/www/docs/mp/index.php index 0e6c9c2eae..9d26bcebb9 100644 --- a/www/docs/mp/index.php +++ b/www/docs/mp/index.php @@ -302,6 +302,7 @@ } // Prepare data for the template +$data["pagetype"] = $pagetype; $data['full_name'] = $MEMBER->full_name(); $data['person_id'] = $MEMBER->person_id(); $data['member_id'] = $MEMBER->member_id(); diff --git a/www/includes/easyparliament/templates/html/mp/_person_navigation.php b/www/includes/easyparliament/templates/html/mp/_person_navigation.php new file mode 100644 index 0000000000..4a4da4ca70 --- /dev/null +++ b/www/includes/easyparliament/templates/html/mp/_person_navigation.php @@ -0,0 +1,11 @@ +
+ +
\ No newline at end of file diff --git a/www/includes/easyparliament/templates/html/mp/profile.php b/www/includes/easyparliament/templates/html/mp/profile.php index 0b7017384f..85b1b67a74 100644 --- a/www/includes/easyparliament/templates/html/mp/profile.php +++ b/www/includes/easyparliament/templates/html/mp/profile.php @@ -10,13 +10,7 @@
-
-
    -
  • -
  • -
  • -
-
+