mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-12 06:47:15 +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>
|
||||||
<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? %>
|
||||||
|
|
Loading…
Add table
Reference in a new issue