Skip to content

Commit

Permalink
Merge pull request #5240 from consuldemocracy/fix_erblint
Browse files Browse the repository at this point in the history
Apply Style/InvertibleUnlessCondition rule to ERB files
  • Loading branch information
javierm committed Sep 7, 2023
2 parents caf7387 + 0b03c40 commit 4921811
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/shared/_header.html.erb
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<% if header.present? %>
<div class="header-card jumbo highlight">
<div class="row">
<div class="small-12 medium-6 column <%= "medium-9 small-centered text-center" unless header.image.present? %>">
<div class="small-12 medium-6 column <%= "medium-9 small-centered text-center" if header.image.blank? %>">
<span><%= header.label %></span>
<h1><%= header.title %></h1>

<p class="lead"><%= header.description %></p>

<% if header.link_text.present? && header.link_url.present? %>
<div class="small-12 medium-6 large-4 <%= "small-centered" unless header.image.present? %>">
<div class="small-12 medium-6 large-4 <%= "small-centered" if header.image.blank? %>">
<%= link_to header.link_text, header.link_url, class: "button expanded large" %>
</div>
<% end %>
Expand Down

0 comments on commit 4921811

Please sign in to comment.