Sha256: 25085c4f9b456b202b28ca5d6aca9a383b661b95976ba55f52eef48596ded795
Contents?: true
Size: 802 Bytes
Versions: 2
Compression:
Stored size: 802 Bytes
Contents
class NotificationsBellComponent < BaseComponent def initialize(tooltip:, unseen:) @tooltip = tooltip @unseen = unseen super end erb_template <<~ERB <div> <% if @tooltip.present? %> <div class="d-none d-sm-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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pg_rails-7.0.8.pre.alpha.105 | pg_engine/app/components/notifications_bell_component.rb |
pg_rails-7.0.8.pre.alpha.104 | pg_engine/app/components/notifications_bell_component.rb |