diff --git a/app/views/travel_advice/_first_part.html.erb b/app/views/travel_advice/_first_part.html.erb new file mode 100644 index 0000000000..36edda38ec --- /dev/null +++ b/app/views/travel_advice/_first_part.html.erb @@ -0,0 +1,11 @@ +<%= render 'govuk_publishing_components/components/metadata', content_item.metadata %> +<% if content_item.map %> +
+ " alt="<%= content_item.map["alt_text"] %>" class="map-image"> + <% if content_item.map_download_url %> +
+ <%= render 'components/download_link', href: content_item.map_download_url, link_text: "Download a more detailed map (PDF)" %> +
+ <% end %> +
+<% end %> \ No newline at end of file diff --git a/app/views/travel_advice/show.html+print.erb b/app/views/travel_advice/show.html+print.erb index b3d484f9a7..c222d4df44 100644 --- a/app/views/travel_advice/show.html+print.erb +++ b/app/views/travel_advice/show.html+print.erb @@ -30,7 +30,7 @@ <%= part['title'] %> - <%= render 'shared/travel_advice_first_part', content_item: @content_item if i == 0 %> + <%= render 'first_part', content_item: @content_item if i == 0 %> <%= render 'govuk_publishing_components/components/govspeak', content: part['body'].html_safe, diff --git a/app/views/travel_advice/show.html.erb b/app/views/travel_advice/show.html.erb index e87fc9a08e..796a7c0885 100644 --- a/app/views/travel_advice/show.html.erb +++ b/app/views/travel_advice/show.html.erb @@ -48,7 +48,7 @@ <%= render 'govuk_publishing_components/components/heading', heading_level: 1, font_size: 'l', margin_bottom: 6, text: @content_item.current_part_title %> <% if @content_item.no_part_slug_provided? %> - <%= render 'shared/travel_advice_first_part', content_item: @content_item %> + <%= render 'first_part', content_item: @content_item %> <% end %> <%= render 'govuk_publishing_components/components/govspeak', {