Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move history index page #1788

Merged
merged 4 commits into from
Jun 3, 2020
Merged

Move history index page #1788

merged 4 commits into from
Jun 3, 2020

Conversation

1pretz1
Copy link
Contributor

@1pretz1 1pretz1 commented Jun 2, 2020

PR to move the static history index page from whitehall to government-frontend.

Local page

localhost_3090_government_history

Live page (https://www.gov.uk/government/history)

www gov uk_government_history

Trello:
https://trello.com/c/mGQh44wr/1983-3-render-static-pages-in-government-frontend


Visual regression results:
https://government-frontend-pr-[THIS PR NUMBER].surge.sh/gallery.html

1pretz1 added 3 commits June 2, 2020 12:32
The notable changes between the template rendered in whitehall and this
are as follows:

* width set to 100% for image tags to stop divs overlapping when shrinking the
  screen
* extra div to give some bottom padding to the content -> 'govuk-body
  govuk-!-padding-bottom-6'
* use hardcoded links instead of rails path helpers
* figcaption now displays slightly differently but is more inline with
  figcaptions in the repo
* removed unused methods and styles
Update controller to allow rendering the history index page.
@1pretz1 1pretz1 force-pushed the add-history-index-page branch from 2457980 to 307b525 Compare June 2, 2020 15:18
@bevanloon bevanloon temporarily deployed to government-f-add-histor-lqwgg0 June 2, 2020 15:18 Inactive
This also adds a call to publishing-api which overrides the publishing
app's path reservation for the base_path. The reservation is overwritten and
updated so the publishing app is government-frontend.
@1pretz1 1pretz1 force-pushed the add-history-index-page branch from 307b525 to 58ce848 Compare June 2, 2020 15:37
@bevanloon bevanloon temporarily deployed to government-f-add-histor-lqwgg0 June 2, 2020 15:37 Inactive
@1pretz1 1pretz1 merged commit 0c6aeb4 into master Jun 3, 2020
@1pretz1 1pretz1 deleted the add-history-index-page branch June 3, 2020 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants