Sha256: 7a37d64a99e7dd39a3753e3d59525a544b92ced53185924107744b3a7e374004

Contents?: true

Size: 1.83 KB

Versions: 66

Compression:

Stored size: 1.83 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? %>
    <% unless @sidebar == false %>
      <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>
    <% end %>
  </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

66 entries across 66 versions & 1 rubygems

Version Path
pg_rails-7.6.20 pg_layout/app/views/pg_layout/_navbar.html.erb
pg_rails-7.6.19 pg_layout/app/views/pg_layout/_navbar.html.erb
pg_rails-7.6.18 pg_layout/app/views/pg_layout/_navbar.html.erb
pg_rails-7.6.17 pg_layout/app/views/pg_layout/_navbar.html.erb
pg_rails-7.6.16 pg_layout/app/views/pg_layout/_navbar.html.erb
pg_rails-7.6.15 pg_layout/app/views/pg_layout/_navbar.html.erb
pg_rails-7.6.14 pg_layout/app/views/pg_layout/_navbar.html.erb
pg_rails-7.6.13 pg_layout/app/views/pg_layout/_navbar.html.erb
pg_rails-7.6.12 pg_layout/app/views/pg_layout/_navbar.html.erb
pg_rails-7.6.11 pg_layout/app/views/pg_layout/_navbar.html.erb
pg_rails-7.6.10 pg_layout/app/views/pg_layout/_navbar.html.erb
pg_rails-7.6.9 pg_layout/app/views/pg_layout/_navbar.html.erb
pg_rails-7.6.8 pg_layout/app/views/pg_layout/_navbar.html.erb
pg_rails-7.6.7 pg_layout/app/views/pg_layout/_navbar.html.erb
pg_rails-7.6.6 pg_layout/app/views/pg_layout/_navbar.html.erb
pg_rails-7.6.5 pg_layout/app/views/pg_layout/_navbar.html.erb
pg_rails-7.6.4 pg_layout/app/views/pg_layout/_navbar.html.erb
pg_rails-7.6.3 pg_layout/app/views/pg_layout/_navbar.html.erb
pg_rails-7.6.2 pg_layout/app/views/pg_layout/_navbar.html.erb
pg_rails-7.6.1 pg_layout/app/views/pg_layout/_navbar.html.erb