<!-- Sign in / out -->
<% if user_signed_in? %>
<a href="<%= edit_user_registration_path %>" class="right-indent" id="signin-signout">
<%= _('Signed in as') %> <%= current_user.name(false) %> <span class="fa fa-user" style="color: inherit;"><span>
</a>
<span class="muted">|</span>
<%= link_to _('Logout'), destroy_user_session_path, method: :delete, class: "left-indent right-indent" %>
<span class="muted">|</span>
<% else %>
<% if !isActivePage(root_path) %>
<a href="#header-signin" data-toggle="modal" dialog-width="700px" class="link-as-button no-header right-indent">
<%= _('Sign in')%>
</a>
<span class="muted">|</span>
<% end %>
<% end %>
<% if MANY_LANGUAGES %>
<!-- language dropdown -->
<a class="dropdown left-indent" id="change-language" href="#">
<%= _('Choose your language') %> <span class="fa fa-sort-desc" style="color: inherit;"><span>
</a>
<ul class="hidden dropdown-list" id="change-language-dropdown">
<% LANGUAGES.each do |l| %>
<li <%= 'class=active' if FastGettext.locale == l.abbreviation %>>
<%= link_to l.name, locale_path(l.abbreviation), method: :patch, class: "main_nav lang-dropdown-link" %>
</li>
<% end %>
</ul>
<% end %>
<% if !user_signed_in? && !isActivePage(root_path) then %>
<div id="header-signin" class="modal" style="display:none">
<%= render partial: 'shared/signin' %>
</div>
<% end %>