Sha256: f1d2d6fe9cb01318b2af2e8e3dbb926930beef95186b5cd729b14d01ba6fd9e2

Contents?: true

Size: 1.1 KB

Versions: 2

Compression:

Stored size: 1.1 KB

Contents

<div class="offcanvas offcanvas-start" tabindex="-1" id="offcanvasExample" aria-labelledby="offcanvasExampleLabel">
  <div class="offcanvas-header">
    <h5 class="offcanvas-title" id="offcanvasExampleLabel"></h5>
    <button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
  </div>
  <div class="offcanvas-body">
    <% if user_signed_in? %>
      <span class="text-body-secondary"><%= Current.user %></span>
      <hr>
    <% end %>
    <ul class="list-unstyled mt-4">
      <% @navbar.sidebar.each do |entry| %>
        <% next if @navbar.hide_entry?(entry) %>

        <li>
          <a
            href="<%= entry[:path] %>"
            class="<%= @navbar.active_entry?(entry, request) ? 'active' : '' %>"
            <%= entry[:attributes] %>
          >
            <%= entry[:title] %>
          </a>
        </li>
      <% end %>
      <% @navbar.extensiones.each do |extension| %>
        <%= extension %>
      <% end %>
    </ul>
  </div>
</div>
<style type="text/css">
  .offcanvas a {
    text-decoration: none;
  }
  .offcanvas li {
    margin-top: 0.75em;
  }
</style>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pg_rails-7.0.8.pre.alpha.43 pg_layout/app/views/pg_layout/_sidebar_mobile.html.erb
pg_rails-7.0.8.pre.alpha.42 pg_layout/app/views/pg_layout/_sidebar_mobile.html.erb