Sha256: 3e67ef7479ef3ae99e18c4afc089dcc54082ac00bb7ad08e9664bb7108c76881

Contents?: true

Size: 1.03 KB

Versions: 7

Compression:

Stored size: 1.03 KB

Contents

<div class="offcanvas offcanvas-start" tabindex="-1" id="offcanvasExample" aria-labelledby="offcanvasExampleLabel">
  <div class="offcanvas-header" data-bs-theme="dark">
    <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-light"><%= 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="text-light <%= @navbar.active_entry?(entry, request) ? 'active' : '' %>"
            <%= entry[:attributes] %>
          >
            <%= entry[:title] %>
          </a>
        </li>
      <% end %>
    </ul>
  </div>
</div>
<style type="text/css">
  .offcanvas a {
    text-decoration: none;
  }
  .offcanvas li {
    margin-top: 0.75em;
  }
</style>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pg_rails-7.0.8.pre.alpha.52 pg_layout/app/views/pg_layout/_sidebar_mobile.html.erb
pg_rails-7.0.8.pre.alpha.51 pg_layout/app/views/pg_layout/_sidebar_mobile.html.erb
pg_rails-7.0.8.pre.alpha.50 pg_layout/app/views/pg_layout/_sidebar_mobile.html.erb
pg_rails-7.0.8.pre.alpha.49 pg_layout/app/views/pg_layout/_sidebar_mobile.html.erb
pg_rails-7.0.8.pre.alpha.48 pg_layout/app/views/pg_layout/_sidebar_mobile.html.erb
pg_rails-7.0.8.pre.alpha.45 pg_layout/app/views/pg_layout/_sidebar_mobile.html.erb
pg_rails-7.0.8.pre.alpha.44 pg_layout/app/views/pg_layout/_sidebar_mobile.html.erb