Use rails helpers as per @ZmagoD's request

This commit is contained in:
Luka Murn 2016-11-30 09:48:57 +01:00
parent 9f998d6fed
commit 84d0cf4620

View file

@ -9,7 +9,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="<%= root_path %>">
<%= link_to(root_path, class: 'navbar-brand') do %>
<%
show_version = !Rails.env.production?
if ENV['NAVBAR_SHOW_VERSION'].present?
@ -17,14 +17,14 @@
end
%>
<% if show_version %>
<img src="/images/logo.png" class="with-version" id="logo">
<%= image_tag('/images/logo.png', class: 'with-version', id: 'logo') %>
<span class="version">
<%= Constants::APP_VERSION %>
</span>
<% else %>
<img src="/images/logo.png" id="logo">
<%= image_tag('/images/logo.png', id: 'logo') %>
<% end %>
</a>
<% end %>
</div>
<% if user_signed_in? %>