-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WEBSITE-1399] Implementation for images on show pages and template u…
…pdate
- Loading branch information
Showing
4 changed files
with
28 additions
and
57 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,21 @@ | ||
extends ../../layouts/layout.pug | ||
block content | ||
.section--primary(id="content") | ||
.container | ||
.section--primary__container | ||
+image('../../images/diane_abbott.png', 'Dianne Abbott') | ||
.section--primary__block | ||
h1 Diane Abbott | ||
.block--border | ||
p MP for #[+link('#', 'Hackney North and Stoke Newington')] | ||
p #[+link('#', 'View all current Labour MPs')] | ||
.block--border | ||
p Labour | ||
section | ||
.container | ||
h2 Contact Details | ||
//- Representative Information | ||
.highlight--box.highlight--primary__soft | ||
p Find out #[+link('#', "When an MP can help you and when they can't")]. | ||
p If you contact an MP who does not represent your constituency, they may not get back to you. | ||
.highlight--box.highlight--caution__soft | ||
p Please include your postcode when emailing an MP. | ||
//- Contact Details | ||
dl.list--definition | ||
dt Email: | ||
dd #[+link('mailto:[email protected]', '[email protected]')] | ||
dt Phone: | ||
dd #[+link('tel:02072194426', '020 7219 4426')] | ||
dt Address: | ||
dd House of Commons, London, SW1A 0AA | ||
.line-break--sm | ||
dl.list--definition | ||
dt Email: | ||
dd #[+link('mailto:[email protected]', '[email protected]')] | ||
dt Phone: | ||
dd #[+link('tel:02072194426', '020 7219 4426')] | ||
dt Address: | ||
dd House of Commons, London, SW1A 0AA | ||
.section--primary(id="content") | ||
.container | ||
.block--border__bottom | ||
.section--primary__container | ||
+image('../../images/diane-abbott.jpg', 'Dianne Abbott') | ||
.section--primary__block | ||
h1 Diane Abbott | ||
p #[+link('#', 'Labour')] MP for #[+link('#', 'Hackney North and Stoke Newington')] | ||
|
||
section | ||
.container | ||
//- Membership History | ||
h2 Biography | ||
h3 Lords | ||
ol.list--pipe | ||
each object in [{sitting_duration: '1987 - 2015', party: 'Labour'}] | ||
li | ||
p= object.sitting_duration | ||
p #[+link('#', object.party)] | ||
|
||
h3 Commons | ||
ol.list--pipe | ||
each object in [{constituency: 'Hackney North and Stoke Newington', sitting_duration: '2015 - Current', party: "Labour"},{constituency: 'Hackney North and Stoke Newington', sitting_duration: '1987 - 2015', party: 'Labour'}] | ||
li | ||
p MP for #[+link('#', object.constituency)] | ||
p= object.sitting_duration | ||
p #[+link('#', object.party)] | ||
section | ||
.container | ||
//- Membership History | ||
h2 Roles | ||
h3 Member of the House of Commons | ||
ol.list--pipe | ||
each object in [{constituency: 'Hackney North and Stoke Newington', sitting_duration: '7 May 2015 - 3 May 2017'},{constituency: 'Hackney North and Stoke Newington', sitting_duration: '7 May 2015 - 3 May 2017'},{constituency: 'Hackney North and Stoke Newington', sitting_duration: '7 May 2015 - 3 May 2017'},{constituency: 'Hackney North and Stoke Newington', sitting_duration: '7 May 2015 - 3 May 2017'},{constituency: 'Hackney North and Stoke Newington', sitting_duration: '7 May 2015 - 3 May 2017'},{constituency: 'Hackney North and Stoke Newington', sitting_duration: '7 May 2015 - 3 May 2017'},{constituency: 'Hackney North and Stoke Newington', sitting_duration: '7 May 2015 - 3 May 2017'}] | ||
li | ||
p MP for #[+link('#', object.constituency)] | ||
p= object.sitting_duration |