Sha256: 98a47339499c9eb6ee5c15e6a55d4b954901fcfe5b008f0012fa44616c2da577
Contents?: true
Size: 1.32 KB
Versions: 2
Compression:
Stored size: 1.32 KB
Contents
<div id="sidebar" class="<%= @navbar_opened_class %> flex-shrink-0 d-none d-<%= @breakpoint_navbar_expand %>-block"> <div class="mt-1"> <div class="m-3"> <%= @navbar.logo if @navbar.logo.present? %> </div> <% if user_signed_in? %> <span class="d-inline-block px-3 text-end text-light"><%= Current.user %></span> <%= link_to users_account_switcher_path do %> <% if Rails.env.development? %> <span class="d-block px-3 text-secondary">Tenant: <%= ActsAsTenant.current_tenant || 'Global' %></span> <span class="d-block px-3 text-secondary">Cuenta: <%= Current.account || 'Global' %></span> <% elsif Current.account.present? %> <span class="d-block px-3 text-secondary"><%= Current.account %></span> <% end %> <% end %> <hr> <% end %> <ul class="list-unstyled ps-0"> <% @navbar.sidebar.each do |entry| %> <% next if @navbar.hide_entry?(entry) %> <li class="mb-1"> <a href="<%= entry[:path] %>" class=" d-inline-flex text-decoration-none pg--nav-button <%= @navbar.active_entry?(entry, request) ? 'active' : '' %>" <%= entry[:attributes] %> > <%= entry[:title] %> </a> </li> <% end %> </ul> </div> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pg_rails-7.5.1 | pg_layout/app/views/pg_layout/_sidebar.html.erb |
pg_rails-7.5.0 | pg_layout/app/views/pg_layout/_sidebar.html.erb |