mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-04 03:36:44 +08:00
Use rails helpers as per @ZmagoD's request
This commit is contained in:
parent
9f998d6fed
commit
84d0cf4620
1 changed files with 4 additions and 4 deletions
|
@ -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? %>
|
||||
|
|
Loading…
Reference in a new issue