Sha256: feeb49c010035a3fc2b68d46d53aecf0e0a4d968f5feeec3444c7d87370705bb
Contents?: true
Size: 792 Bytes
Versions: 72
Compression:
Stored size: 792 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-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
72 entries across 72 versions & 1 rubygems