Sha256: 8f41abc6d3d394a89033eea62f908a12cd7d0bf175eaeda335d7fba2857bbc41

Contents?: true

Size: 1.04 KB

Versions: 19

Compression:

Stored size: 1.04 KB

Contents

<li class="nav-item dropdown" style="list-style: none">
  <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
    <i class="fa-solid fa-user text-primary user-menu-icon"></i>
  </a>
  <ul class="dropdown-menu dropdown-menu-end">
    <% if active_element.current_user.present? %>
      <li class="dropdown-header">Signed in as <span class="text-primary"><%= active_element.current_user.email %></span></li>
      <li><hr class="dropdown-divider"/></li>
      <% if active_element.sign_in_path.present? %>
        <li><%= link_to 'Sign Out', active_element.sign_out_path,
                                    method: active_element.sign_out_method,
                                    class: 'dropdown-item' %></li>
      <% end %>
    <% elsif active_element.sign_out_path.present? %>
      <li><%= link_to 'Sign In', active_element.sign_in_path,
                                 method: active_element.sign_in_method,
                                 class: 'dropdown-item' %></li>
    <% end %>
  </ul>
</li>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
active_element-0.0.31 app/views/active_element/_user.html.erb
active_element-0.0.30 app/views/active_element/_user.html.erb
active_element-0.0.29 app/views/active_element/_user.html.erb
active_element-0.0.28 app/views/active_element/_user.html.erb
active_element-0.0.27 app/views/active_element/_user.html.erb
active_element-0.0.26 app/views/active_element/_user.html.erb
active_element-0.0.24 app/views/active_element/_user.html.erb
active_element-0.0.23 app/views/active_element/_user.html.erb
active_element-0.0.22 app/views/active_element/_user.html.erb
active_element-0.0.21 app/views/active_element/_user.html.erb
active_element-0.0.19 app/views/active_element/_user.html.erb
active_element-0.0.18 app/views/active_element/_user.html.erb
active_element-0.0.17 app/views/active_element/_user.html.erb
active_element-0.0.16 app/views/active_element/_user.html.erb
active_element-0.0.15 app/views/active_element/_user.html.erb
active_element-0.0.14 app/views/active_element/_user.html.erb
active_element-0.0.13 app/views/active_element/_user.html.erb
active_element-0.0.12 app/views/active_element/_user.html.erb
active_element-0.0.11 app/views/active_element/_user.html.erb