Skip to content

Commit

Permalink
Merge pull request #1714 from alphagov/webchat-above-email
Browse files Browse the repository at this point in the history
[DO NOT MERGE] Move webchat section to be above the email section
  • Loading branch information
thomasleese authored Mar 30, 2020
2 parents 5357d3e + c122f91 commit 1e7fe1c
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,11 +16,6 @@
<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 All @@ -32,6 +27,11 @@
<%= @content_item.online_form_body %>
<% end %>

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

<% if @content_item.email.any? %>
<h2 id="email-title">Email</h2>
<% @content_item.email.each do |email_group| %>
Expand Down

0 comments on commit 1e7fe1c

Please sign in to comment.