diff --git a/app/assets/images/how-gov-works/10_downing_street.jpg b/app/assets/images/how-gov-works/10_downing_street.jpg new file mode 100644 index 000000000..a204cfacf Binary files /dev/null and b/app/assets/images/how-gov-works/10_downing_street.jpg differ diff --git a/app/assets/images/how-gov-works/cabinet_01.jpg b/app/assets/images/how-gov-works/cabinet_01.jpg new file mode 100644 index 000000000..69b28a34c Binary files /dev/null and b/app/assets/images/how-gov-works/cabinet_01.jpg differ diff --git a/app/presenters/how_government_works_presenter.rb b/app/presenters/how_government_works_presenter.rb new file mode 100644 index 000000000..c260cbb0a --- /dev/null +++ b/app/presenters/how_government_works_presenter.rb @@ -0,0 +1,29 @@ +class HowGovernmentWorksPresenter < ContentItemPresenter + def prime_minister + content_item.dig("links", "current_prime_minister", 0) + end + + def prime_minister_image_url + prime_minister.dig("details", "image", "url") + end + + def prime_minister_image_alt_text + prime_minister.dig("details", "image", "alt_text") + end + + def reshuffle_in_progress? + content_item.dig("details", "reshuffle_in_progress") + end + + def ministerial_role_counts + content_item.dig("details", "ministerial_role_counts") + end + + def department_counts + content_item.dig("details", "department_counts") + end + + def agencies_and_other_public_bodies + "#{department_counts['agencies_and_public_bodies'].floor(-2)}+" + end +end diff --git a/app/views/content_items/how_government_works.html.erb b/app/views/content_items/how_government_works.html.erb new file mode 100644 index 000000000..db4cf5a01 --- /dev/null +++ b/app/views/content_items/how_government_works.html.erb @@ -0,0 +1,524 @@ +
The <%= link_to("Prime Minister", "/government/ministers/prime-minister", class: "govuk-link") %> is the leader of His Majesty’s Government and is ultimately responsible for all policy and decisions.
+The Prime Minister also:
+ + <%= render "govuk_publishing_components/components/list", { + extra_spacing: true, + visible_counters: true, + items: [ + "oversees the operation of the Civil Service and government agencies", + "appoints members of the government", + "is the principal government figure in the House of Commons", + ] + } %> + + <% if @content_item.prime_minister.present? %> +The Prime Minister is <%= link_to @content_item.prime_minister["title"], @content_item.prime_minister["base_path"], class: "govuk-link" %>.
+ <% end %> + ++ <%= link_to "Read more about the Prime Minister's Office, 10 Downing Street", "/government/organisations/prime-ministers-office-10-downing-street", class: "govuk-link" %> +
+ + <% if @content_item.prime_minister.present? && @content_item.prime_minister_image_url.present? %> + <%= image_tag @content_item.prime_minister_image_url, { alt: @content_item.prime_minister_image_alt_text, width: '465', height: '310' } %> + <% else %> + <%= image_tag 'how-gov-works/10_downing_street.jpg', alt: '10 Downing Street', width: '465', height: '310' %> + <% end %> +The Cabinet is made up of the senior members of government. Every week during Parliament, members of the Cabinet (Secretaries of State from all departments and some other ministers) meet to discuss the most important issues for the government.
+<%= link_to("See who is in the Cabinet", "/government/ministers", class: "govuk-link") %>
+ + <%= image_tag 'how-gov-works/cabinet_01.jpg', alt: '', width: '465', height: '310' %> +Ministers are chosen by the Prime Minister from the members of the House of Commons and House of Lords. They are responsible for the actions, successes and failures of their departments.
+<%= link_to "See full list of ministers", "/government/ministers", class: "govuk-link" %>
+Departments and their agencies are responsible for putting government policy into practice.
+ + <%= render "govuk_publishing_components/components/heading", { + text: "Government departments", + font_size: "m", + heading_level: 3, + margin_bottom: 4, + } %> + +Some departments, like the <%= link_to "Ministry of Defence", "/government/organisations/ministry-of-defence", class: "govuk-link" %>, cover the whole UK. Others don’t – the <%= link_to "Department for Work and Pensions", "/government/organisations/department-for-work-pensions", class: "govuk-link" %> doesn't cover Northern Ireland. This is because some aspects of government are devolved to Scotland, Wales and Northern Ireland.
+<%= link_to "Non-ministerial departments", "/government/organisations#non_ministerial_departments", class: "govuk-link" %> are headed by senior civil servants and not ministers. They usually have a regulatory or inspection function like the Charity Commission.
+ + <%= render "govuk_publishing_components/components/heading", { + text: "Executive agencies", + font_size: "m", + heading_level: 3, + margin_bottom: 4, + } %> + +These are part of government departments and usually provide government services rather than decide policy - which is done by the department that oversees the agency.
+An example is the <%= link_to "Driver and Vehicle Licensing Agency", "/government/organisations/driver-and-vehicle-licensing-agency", class: "govuk-link" %> (overseen by the <%= link_to "Department for Transport", "/government/organisations/department-for-transport", class: "govuk-link" %>).
+ + <%= render "govuk_publishing_components/components/heading", { + text: "Other public bodies", + font_size: "m", + heading_level: 3, + margin_bottom: 4, + } %> + +These have varying degrees of independence but are directly accountable to ministers. There are 4 types of non-departmental public bodies (NDPBs).
+Executive NDPBs do work for the government in specific areas - for example, the Environment Agency.
+Advisory NDPBs provide independent, expert advice to ministers - for example, the Committee on Standards in Public Life.
+Tribunal NDPBs are part of the justice system and have jurisdiction over a specific area of law - for example, the Competition Appeal Tribunal.
+Independent monitoring boards are responsible for the running of prisons and treatment of prisoners - for example, His Majesty's Inspectorate of Prisons.
+The Civil Service does the practical and administrative work of government. It is co-ordinated and managed by the Prime Minister, in their role as Minister for the Civil Service.
+Around half of all civil servants provide services direct to the public, including:
+ + <%= render "govuk_publishing_components/components/list", { + extra_spacing: true, + visible_counters: true, + items: [ + "paying benefits and pensions", + "running employment services", + "staffing prisons", + "issuing driving licences", + ] + } %> + +The <%= link_to "Civil Service", "/government/organisations/civil-service", class: "govuk-link" %> is on GOV.UK.
+ + <%= render "govuk_publishing_components/components/heading", { + text: "Work for us", + font_size: "m", + heading_level: 3, + margin_bottom: 4, + } %> + +<%= link_to "Find and apply", "https://civilservicejobs.service.gov.uk/", class: "govuk-link" %> for vacancies in departments, executive agencies and non-departmental public bodies.
+ + <%= render "govuk_publishing_components/components/heading", { + text: "Work with us", + font_size: "m", + heading_level: 3, + margin_bottom: 4, + } %> + +<%= link_to "Search Contracts Finder", "/contracts-finder/", class: "govuk-link" %> for any government contract over £10,000 and get details of all previous tenders.
+Read about ways to <%= link_to "get involved", "/government/get-involved/", class: "govuk-link" %>.
+ + <%= render "govuk_publishing_components/components/heading", { + text: "Engage with government", + font_size: "m", + heading_level: 3, + margin_bottom: 4, + } %> + +Interact with government through <%= link_to "consultations and petitions", "/government/get-involved#engage-with-government", class: "govuk-link" %> to inform and influence the decisions it makes.
+ + <%= render "govuk_publishing_components/components/heading", { + text: "Take part", + font_size: "m", + heading_level: 3, + margin_bottom: 4, + } %> + +<%= link_to "Offer your skills and energy", "/government/get-involved#take-part", class: "govuk-link" %> to a project in your neighbourhood, around the UK or overseas.
+Laws go through several stages before they are passed by Parliament. The House of Commons and the House of Lords work together to make them.
+They can include:
+ + <%= render "govuk_publishing_components/components/heading", { + text: "Draft legislation", + font_size: "m", + heading_level: 3, + margin_bottom: 4, + } %> + +White papers outline proposals for new laws. Green papers ask for public comments before the white paper is published.
+Bills are proposals for new laws or changes to existing ones. Once agreed by Parliament, they have to be approved by the King before becoming law.
+ + <%= render "govuk_publishing_components/components/heading", { + text: "Acts of Parliament", + font_size: "m", + heading_level: 3, + margin_bottom: 4, + } %> + +These are bills which have been approved by the Commons, the Lords, and the King. The relevant government department is responsible for putting the act into practice.
+<%= link_to "Visit www.legislation.gov.uk", "https://www.legislation.gov.uk", class: "govuk-link", rel: "external" %>
+The Freedom of Information Act gives you the right to ask any public sector organisation for all the recorded information it has on any subject. Anyone can make a request for information – known as a Freedom of Information (or FOI) request. There are no restrictions on your age, nationality or where you live.
+<%= link_to "How to make a freedom of information request", "/make-a-freedom-of-information-request", class: "govuk-link" %>
+<%= link_to "See FOI releases on GOV.UK", "/search/transparency-and-freedom-of-information-releases?content_store_document_type=foi_release", class: "govuk-link" %>
+ + <%= render "govuk_publishing_components/components/heading", { + text: "Statistics", + font_size: "m", + heading_level: 3, + margin_bottom: 4, + } %> + +Government produces Official Statistics about most areas of public life. Statistics are used by people inside and outside government to make informed decisions and to measure the success of government policies and services. <%= link_to "Find out about the legislation", "/government/statistics/how-national-and-official-statistics-are-assured", class: "govuk-link" %> that governs the publication of UK national and Official Statistics.
+<%= link_to "See statistics publications on GOV.UK", "/search/research-and-statistics", class: "govuk-link" %>
+ + <%= render "govuk_publishing_components/components/heading", { + text: "Transparency", + font_size: "m", + heading_level: 3, + margin_bottom: 4, + } %> + +The government publishes information about how government works to allow you to make politicians, public services and public organisations more accountable. We are committed to publishing information about:
+ + <%= render "govuk_publishing_components/components/list", { + extra_spacing: true, + visible_counters: true, + items: [ + "how much public money has been spent on what", + "the job titles of senior civil servants and how much they are paid", + "how the government is doing against its objectives" + ] + } %> + +<%= link_to 'See transparency releases on GOV.UK', "/search/transparency-and-freedom-of-information-releases?content_store_document_type=transparency", class: "govuk-link" %>
+ + <%= render "govuk_publishing_components/components/heading", { + text: "Data", + font_size: "m", + heading_level: 3, + margin_bottom: 4, + } %> + +Putting data in people’s hands can help them have more of a say in the reform of public services. On <%= link_to "data.gov.uk", "https://data.gov.uk/", class: "govuk-link", rel: "external" %> you can easily find, review and use information about our country and communities - for example, to develop web applications.
+In <%= link_to "Scotland", "https://www.gov.scot/", class: "govuk-link", rel: "external" %>, <%= link_to "Wales", "https://www.gov.wales/", class: "govuk-link", rel: "external" %> and <%= link_to "Northern Ireland", "https://www.northernireland.gov.uk/", class: "govuk-link", rel: "external" %>, devolved administrations are responsible for many domestic policy issues, and their Parliaments/Assemblies have law-making powers for those areas.
+Areas the Scottish Government, Welsh Government, and the Northern Ireland Executive are responsible for, include:
+ + <%= render "govuk_publishing_components/components/list", { + extra_spacing: true, + visible_counters: true, + items: [ + "health", + "education", + "culture", + "the environment", + "transport" + ] + } %> +Councils make and carry out decisions on local services. Many parts of England have 2 tiers of local government: county councils and district, borough or city councils.
+In some parts of the country, there’s just one tier of local government providing all the functions, known as a ‘unitary authority’. This can be a city, borough or county council – or it may just be called ‘council’. As well as these, many areas also have parish or town councils.
+<%= link_to "Understand how your council works", "/understand-how-your-council-works/types-of-council/", class: "govuk-link" %>
+Parliament is separate from government. Made up of the House of Commons and the House of Lords, its role is to:
+ + <%= render "govuk_publishing_components/components/list", { + extra_spacing: true, + visible_counters: true, + items: [ + "look at what the government is doing", + "debate issues and pass new laws", + "set taxes" + ] + } %> + ++ <%= link_to "Find out about how Parliament works", "https://www.parliament.uk/", class: "govuk-link", rel: "external" %> +
+ +Read The Official Report at <%= link_to "Hansard", "http://www.parliament.uk/business/publications/", class: "govuk-link", rel: "external" %>
+Britain has one of the oldest governments in the world. Find out more about how it has worked and who has shaped it in the <%= link_to "history", "/government/history", class: "govuk-link" %> section.
+Read about past Prime Ministers, Chancellors and Foreign Secretaries in <%= link_to "notable people", "/government/history#notable-people", class: "govuk-link" %>. Learn more about historic <%= link_to "government buildings", "/government/history#government-buildings", class: "govuk-link" %> on Whitehall and around the UK.
+You can also find links to <%= link_to "historical research", "/government/history#historical-research", class: "govuk-link" %>, documents and records.
+ + <%= image_tag 'how-gov-works/churchill_01.jpg', alt: '', width: '465', height: '310' %> +