Sha256: edd9c54239c6602b4ed1be00e2c868f9379c479750e1d543c408471b0111a475
Contents?: true
Size: 990 Bytes
Versions: 14
Compression:
Stored size: 990 Bytes
Contents
# frozen_string_literal: true module Arclight # Render information about the collection class CollectionInfoComponent < ViewComponent::Base def initialize(collection:) super @collection = collection end attr_reader :collection delegate :total_component_count, :online_item_count, :last_indexed, :collection_unitid, to: :collection delegate :blacklight_icon, to: :helpers def info_icon icon = <<~SVG <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-info-circle-fill" viewBox="0 0 16 16"> <path d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"/> </svg> SVG icon.html_safe # rubocop:disable Rails/OutputSafety end end end
Version data entries
14 entries across 14 versions & 1 rubygems