diff --git a/app/assets/images/history/government-buildings.jpg b/app/assets/images/history/government-buildings.jpg new file mode 100644 index 000000000..9e7d6e74c Binary files /dev/null and b/app/assets/images/history/government-buildings.jpg differ diff --git a/app/assets/images/history/historical-documents.jpg b/app/assets/images/history/historical-documents.jpg new file mode 100644 index 000000000..c1c621d48 Binary files /dev/null and b/app/assets/images/history/historical-documents.jpg differ diff --git a/app/assets/images/history/horse-guards-vintage.jpg b/app/assets/images/history/horse-guards-vintage.jpg new file mode 100644 index 000000000..696f1e5cc Binary files /dev/null and b/app/assets/images/history/horse-guards-vintage.jpg differ diff --git a/app/assets/images/how-gov-works/Churchill_01.jpg b/app/assets/images/how-gov-works/Churchill_01.jpg new file mode 100644 index 000000000..c2a36560e Binary files /dev/null and b/app/assets/images/how-gov-works/Churchill_01.jpg differ diff --git a/app/controllers/content_items_controller.rb b/app/controllers/content_items_controller.rb index d4e194198..3e1eb83c8 100644 --- a/app/controllers/content_items_controller.rb +++ b/app/controllers/content_items_controller.rb @@ -58,6 +58,7 @@ def show_history_page 1_horse_guards_road king_charles_street lancaster_house + history ] if valid_page_ids.include?(page_id) diff --git a/app/views/histories/history.html.erb b/app/views/histories/history.html.erb new file mode 100644 index 000000000..b521a81cb --- /dev/null +++ b/app/views/histories/history.html.erb @@ -0,0 +1,168 @@ +
+
+
+ <%= render "govuk_publishing_components/components/title", { + title: "History of the UK government".html_safe + } %> +
+
+

In this section you can read short biographies of notable people and explore the history of government buildings. You can also search our online records and read articles and blog posts by historians.

+
+
+
+ +
+
+
+
+
+
+ <%= render "govuk_publishing_components/components/heading", { + text: "Why is history important?", + id: "why-is-history-important", + margin_bottom: 3, + } %> +

Governments are remembered for their leaders and the course they set for their country. The British government has a long and fascinating history, and exploring its past can help us understand how it is run today.

+

The information here provides a starting point for research. It includes objective factual content and research carried out by independent and civil service historians.

+
+
+ <%= image_tag "history/horse-guards-vintage.jpg", alt: "An old painting of the Horse Guards building.", loading: "lazy", style: "width:100%" %> +
Thomas Shotter Boys – A View of the Horse Guards from Whitehall. Government Art Collection.
+
+
+ +
+
+
+
+
+ <%= image_tag 'how-gov-works/Churchill_01.jpg', alt: "", loading: "lazy", style: "width:100%" %> +
+
+ <%= render "govuk_publishing_components/components/heading", { + text: "Notable people", + id: "notable-peoples", + margin_bottom: 3, + } %> + +

You can find out about the life and achievements of those who have led the government as Prime Minister, alongside those who have held the roles of Chancellor and Foreign Secretary.

+ +
    +
  • + <%= link_to 'Prime Ministers', "/government/history/past-prime-ministers", class: "govuk-link" %> +
  • +
  • + <%= link_to "Chancellors", "/government/history/past-chancellors", class: "govuk-link" %> +
  • +
  • + <%= link_to "Foreign Secretaries", "/government/history/past-foreign-secretaries", class: "govuk-link" %> +
  • +
+
+
+ +
+
+
+
+
+ <%= render "govuk_publishing_components/components/heading", { + text: "Government buildings", + id: "government-buildings", + margin_bottom: 3, + } %> + +

Number 10 Downing Street is the best known government building, but there are others that play a role in the day-to-day business of government and have had a significant role in our history.

+ +

You can learn more about the background and take tours of several of the buildings used by government on Whitehall and around the UK.

+ +
    +
  • + <%= link_to "10 Downing Street", "/government/history/10-downing-street", class: "govuk-link" %> +
  • +
  • + <%= link_to "11 Downing Street", "/government/history/11-downing-street", class: "govuk-link" %> +
  • +
  • + <%= link_to "King Charles Street (FCO)", "/government/history/king-charles-street", class: "govuk-link" %> +
  • +
  • + <%= link_to "Lancaster House (FCO)", "/government/history/lancaster-house", class: "govuk-link" %> +
  • +
  • + <%= link_to "Ministry of Defence, Whitehall", "/government/publications/history-of-the-ministry-of-defence", class: "govuk-link" %> +
  • +
  • + <%= link_to "1 Horse Guards Road", "/government/history/1-horse-guards-road", class: "govuk-link" %> +
  • +
  • + <%= link_to "Hillsborough Castle", "/hillsborough-castle", class: "govuk-link" %> +
  • +
+
+
+ <%= image_tag 'history/government-buildings.jpg', alt: "", loading: "lazy", style: "width:100%" %> +
+
+ +
+
+
+
+
+ <%= image_tag 'history/historical-documents.jpg', alt: "", loading: "lazy", style: "width:100%" %> +
+
+ <%= render "govuk_publishing_components/components/heading", { + text: "Documents and records", + margin_bottom: 3, + } %> + +

The National Archives is preserving UK government information from letters and treaties to web pages Cabinet papers. You can search the archive, or browse the themed collections.

+ +

You can also explore the Government Art Collection online, which contains over 13,500 works of art, mainly from British artists.

+ +
    +
  • + <%= link_to "The National Archives: UK Government Web Archive", "http://www.nationalarchives.gov.uk/webarchive/", class: "govuk-link", rel: "external" %> +
  • +
  • + <%= link_to "Government Art Collection", "http://www.number10.gov.uk/history-and-tour/government-art-collection-at-number-10/", class: "govuk-link", rel: "external" %> +
  • +
+
+
+ +
+
+
+ + <%= render "govuk_publishing_components/components/heading", { + text: "Articles and blog posts", + margin_bottom: 3, + } %> + +

Some government departments, including Number 10 and the Foreign and Commonwealth Office, write or commission articles and research to improve our knowledge of the history of the British government.

+ +

Find out more on the history of government blog.

+
+
+
+ + <%= render "govuk_publishing_components/components/heading", { + text: "More sources", + margin_bottom: 3, + } %> + +

Many institutions in the UK, including universities, museums and libraries, hold information about the history of our government. The following websites may be useful for further research:

+ +
    +
  • + <%= link_to "Parliament - Living Heritage", "https://www.parliament.uk/about/living-heritage/", class: "govuk-link", rel: "external" %> +
  • + <%= link_to "The British Library", "https://www.bl.uk/", class: "govuk-link", rel: "external" %> +
  • +
+
+
+
diff --git a/lib/publish_static_pages.rb b/lib/publish_static_pages.rb index 9dfed1873..6d04cb456 100644 --- a/lib/publish_static_pages.rb +++ b/lib/publish_static_pages.rb @@ -35,11 +35,20 @@ module PublishStaticPages template: "histories/lancaster_house", base_path: "/government/history/lancaster-house", }, + { + content_id: "db95a864-874f-4f50-a483-352a5bc7ba18", + title: "History of the UK government", + description: "In this section you can read short biographies of notable people and explore the history of government buildings. You can also search our online records and read articles and blog posts by historians.", + template: "histories/history", + base_path: "/government/history", + }, ].freeze def self.publish_all PAGES.each do |page| payload = present_for_publishing_api(page) + + Services.publishing_api.put_path(page[:base_path], publishing_app: "government-frontend", override_existing: true) Services.publishing_api.put_content(payload[:content_id], payload[:content]) Services.publishing_api.publish(payload[:content_id], nil, locale: "en") end diff --git a/test/unit/publish_static_pages_test.rb b/test/unit/publish_static_pages_test.rb index 45736a6d1..676c458dd 100644 --- a/test/unit/publish_static_pages_test.rb +++ b/test/unit/publish_static_pages_test.rb @@ -16,6 +16,9 @@ class PublishStaticPagesTest < ActiveSupport::TestCase def expect_publishing(pages) pages.each do |page| + Services.publishing_api.expects(:put_path) + .with(page[:base_path], publishing_app: "government-frontend", override_existing: true) + Services.publishing_api.expects(:put_content) .with( page[:content_id],