Sha256: cbe1b048286e85422e5fae7c013b8d11204b9b106b87d95290cc8e582ec14379

Contents?: true

Size: 807 Bytes

Versions: 24

Compression:

Stored size: 807 Bytes

Contents

class NotificationsBellComponent < BaseComponent
  def initialize(tooltip:, unseen:)
    @tooltip = tooltip
    @unseen = unseen
    super
  end

  erb_template <<~ERB
    <div class="d-flex">
      <% if @tooltip.present? %>
        <div class="d-inline-block text-white pg--notifications-bell--tooltip">
          <%= @tooltip %>
        </div>
      <% end %>
      <button type="button" class="btn btn-primary btn-sm position-relative"
                            data-bs-toggle="collapse" data-bs-target="#notifications-collapse">
        <i class="bi-bell-fill fs-5 text-light"></i>
        <% if @unseen %>
          <span class="position-absolute p-1 xbg-danger bg-gradient rounded-circle start-50 notifications-unseen-mark">
          </span>
        <% end %>
      </button>
    </div>
  ERB
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
pg_rails-7.6.27 pg_engine/app/components/notifications_bell_component.rb
pg_rails-7.6.26 pg_engine/app/components/notifications_bell_component.rb
pg_rails-7.6.25 pg_engine/app/components/notifications_bell_component.rb
pg_rails-7.6.24 pg_engine/app/components/notifications_bell_component.rb
pg_rails-7.6.24.pre.5 pg_engine/app/components/notifications_bell_component.rb
pg_rails-7.6.24.pre.4 pg_engine/app/components/notifications_bell_component.rb
pg_rails-7.6.24.pre.3 pg_engine/app/components/notifications_bell_component.rb
pg_rails-7.6.23 pg_engine/app/components/notifications_bell_component.rb
pg_rails-7.6.22 pg_engine/app/components/notifications_bell_component.rb
pg_rails-7.6.22.pre.3 pg_engine/app/components/notifications_bell_component.rb
pg_rails-7.6.22.pre.2 pg_engine/app/components/notifications_bell_component.rb
pg_rails-7.6.22.pre.1 pg_engine/app/components/notifications_bell_component.rb
pg_rails-7.6.21 pg_engine/app/components/notifications_bell_component.rb
pg_rails-7.6.21.pre.11 pg_engine/app/components/notifications_bell_component.rb
pg_rails-7.6.21.pre.10 pg_engine/app/components/notifications_bell_component.rb
pg_rails-7.6.21.pre.9 pg_engine/app/components/notifications_bell_component.rb
pg_rails-7.6.21.pre.8 pg_engine/app/components/notifications_bell_component.rb
pg_rails-7.6.21.pre.7 pg_engine/app/components/notifications_bell_component.rb
pg_rails-7.6.21.pre.6 pg_engine/app/components/notifications_bell_component.rb
pg_rails-7.6.21.pre.5 pg_engine/app/components/notifications_bell_component.rb