app/views/layouts/_top_bar.html.erb in adminpanel-2.1.0 vs app/views/layouts/_top_bar.html.erb in adminpanel-2.1.1
- old
+ new
@@ -19,12 +19,34 @@
<div class="top-menu visible-desktop">
<ul class="pull-right">
<li>
<% if signed_in? %>
- <%= link_to content_tag('i', nil, :class => 'fa fa-power-off') + ' Logout', signout_path, :method => "delete", :escape => true %>
+ <%=
+ link_to(
+ content_tag(
+ 'i',
+ nil,
+ class: 'fa fa-power-off'
+ ) + " #{I18n.t('authentication.logout')}",
+ signout_path,
+ method: :delete,
+ escape: true,
+ id: 'signout-button'
+ )
+ %>
<% else %>
- <%= link_to content_tag('i', nil, :class => 'fa fa-power-off') + ' Login', signin_path, :escape => true %>
+ <%=
+ link_to(
+ content_tag(
+ 'i',
+ nil,
+ class: 'fa fa-power-off'
+ ) + " #{I18n.t('authentication.login')}",
+ signin_path,
+ escape: true
+ )
+ %>
<% end %>
</li>
</ul>
</div>