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