Skip to content

Commit

Permalink
Move webchat section to be above the email section
Browse files Browse the repository at this point in the history
There was some confusion in the last change
(5b00d3e) and it looks like they would
prefer the webchat section to appear above the email section (rather
than above the phone section).
  • Loading branch information
thomasleese committed Mar 27, 2020
1 parent 5b00d3e commit c122f91
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 c122f91

Please sign in to comment.