Skip to content

Commit

Permalink
Merge pull request #1712 from alphagov/move-webchat
Browse files Browse the repository at this point in the history
Move webchat to the top of the page
  • Loading branch information
thomasleese authored Mar 27, 2020
2 parents e614258 + 64f4fe5 commit 5b00d3e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/views/content_items/contact.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
<div class="govuk-grid-column-two-thirds">

<% body = capture do %>
<% if @content_item.show_webchat? %>
<h2 id="webchat-title">Webchat</h2>
<%= render 'shared/webchat' %>
<% end %>

<% if @content_item.online_form_links.any? %>
<h2 id="online-forms-title">Online</h2>
<% @content_item.online_form_links.each do |link| %>
Expand Down Expand Up @@ -44,11 +49,6 @@
<%= @content_item.email_body %>
<% end %>

<% if @content_item.show_webchat? %>
<h2 id="webchat-title">Webchat</h2>
<%= render 'shared/webchat' %>
<% end %>

<% if @content_item.phone.any? %>
<h2 id="phone-title">Phone</h2>
<% @content_item.phone.each do |phone_group| %>
Expand Down

0 comments on commit 5b00d3e

Please sign in to comment.