Sha256: 884a41b7629bd3d9b3998aa64d04ac0d8e33bbb60d9f6e1f5104102912e59294

Contents?: true

Size: 1.75 KB

Versions: 6

Compression:

Stored size: 1.75 KB

Contents

<nav class="navbar navbar-expand-<%= @breakpoint_navbar_expand %>" data-bs-theme="dark">
  <div class="container-fluid gap-2">
    <% unless @sidebar == false %>
      <button data-controller="navbar" data-action="navbar#expandNavbar"
              class="btn btn-outline-light me-2 d-none d-<%= @breakpoint_navbar_expand %>-inline-block">
        <i class="bi <%= @navbar_chevron_class %>"></i>
      </button>

    <% end %>
    <% @navbar.extensiones.each do |extension| %>
      <%= extension %>
    <% end %>
    <% if Current.user.present? && @notifications_bell.present? %>
      <%= render @notifications_bell %>
    <% end %>
    <%= @navbar.logo if @navbar.logo.present? %>
    <button class="btn btn-outline-light d-inline-block d-<%= @breakpoint_navbar_expand %>-none"
            type="button"
            data-bs-toggle="offcanvas"
            data-bs-target="#offcanvasExample" aria-controls="offcanvasExample">
      <i class="bi bi-list"></i>
    </button>
  </div>
</nav>
<div class="collapse" id="notifications-collapse" data-controller="notifications">
  <div id="notifications">
    <div id="notifications-inner">
      <% if @notifications&.any? %>
        <%= render NotificationComponent.with_collection(@notifications) if @notifications&.any? %>
      <% else %>
        <span class="text-light text-center">
          No hay notificaciones
        </span>
      <% end %>
      <div class="text-center">
        <button type="button" class="btn btn-link text-light btn-sm" data-bs-toggle="collapse" data-bs-target="#notifications-collapse">
          <i class="bi-chevron-up fs-3"></i>
        </button>
      </div>
    </div>
  </div>
</div>

<style type="text/css" media="(max-width: 767px)">
  .navbar .navbar-brand {
    visibility:visible!important;
  }
</style>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pg_rails-7.0.8.pre.alpha.111 pg_layout/app/views/pg_layout/_navbar.html.erb
pg_rails-7.0.8.pre.alpha.110 pg_layout/app/views/pg_layout/_navbar.html.erb
pg_rails-7.0.8.pre.alpha.109 pg_layout/app/views/pg_layout/_navbar.html.erb
pg_rails-7.0.8.pre.alpha.108 pg_layout/app/views/pg_layout/_navbar.html.erb
pg_rails-7.0.8.pre.alpha.107 pg_layout/app/views/pg_layout/_navbar.html.erb
pg_rails-7.0.8.pre.alpha.106 pg_layout/app/views/pg_layout/_navbar.html.erb