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