Sha256: ae1a1511beb5a89bba1c93afab58af23525c470c844db365e5656ebae0351b5e

Contents?: true

Size: 853 Bytes

Versions: 11

Compression:

Stored size: 853 Bytes

Contents

<ul class="navbar-nav">
  <%= render_nav_actions do |config, action|%>
    <li class="nav-item"><%= action %></li>
  <% end %>

  <% if has_user_authentication_provider? %>
    <% if current_user %>

    <% if current_user.admin? %>
        <li class="nav-item">
          <%= link_to "GBL♦Admin", admin_documents_path, {class: 'nav-link'} %>
        </li>
      <% end %>

    <li class="nav-item">
      <%= link_to "Sign out", destroy_user_session_path, { :method => :delete, class: 'nav-link'} %>
    </li>

    <% unless current_user.to_s.blank? -%>
    <li class="nav-item">
      <%= link_to(current_user.email, edit_user_registration_path, {class: 'nav-link'}) %>
    </li>
    <% end %>
    <% else %>
    <li class="nav-item">
      <%= link_to "Sign in", new_user_session_path, class: 'nav-link' %>
    </li>
    <% end %>
  <% end %>
</ul>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
geoblacklight_admin-0.6.0 lib/generators/geoblacklight_admin/templates/_user_util_links.html.erb
geoblacklight_admin-0.5.1 lib/generators/geoblacklight_admin/templates/_user_util_links.html.erb
geoblacklight_admin-0.5.0 lib/generators/geoblacklight_admin/templates/_user_util_links.html.erb
geoblacklight_admin-0.4.2 lib/generators/geoblacklight_admin/templates/_user_util_links.html.erb
geoblacklight_admin-0.4.1 lib/generators/geoblacklight_admin/templates/_user_util_links.html.erb
geoblacklight_admin-0.4.0 lib/generators/geoblacklight_admin/templates/_user_util_links.html.erb
geoblacklight_admin-0.3.2 lib/generators/geoblacklight_admin/templates/_user_util_links.html.erb
geoblacklight_admin-0.3.1 lib/generators/geoblacklight_admin/templates/_user_util_links.html.erb
geoblacklight_admin-0.3.0 lib/generators/geoblacklight_admin/templates/_user_util_links.html.erb
geoblacklight_admin-0.2.1 lib/generators/geoblacklight_admin/templates/_user_util_links.html.erb
geoblacklight_admin-0.1.0 lib/generators/geoblacklight_admin/templates/_user_util_links.html.erb