Class: Blacklight::Icons::CollectionsComponent

Inherits:
IconComponent
  • Object
show all
Defined in:
app/components/blacklight/icons/collections_component.rb

Instance Method Summary collapse

Instance Method Details

#svgObject



8
9
10
11
12
13
14
15
16
# File 'app/components/blacklight/icons/collections_component.rb', line 8

def svg
  <<~SVG
    <!-- Generated by IcoMoon.io -->
    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
    <title>#{title}</title>
    	<path fill="#6c757d" d="M2 28c0 1.106 0.894 2 2 2h24c1.106 0 2-0.894 2-2v-18h-28v18zM12 14.75c0-0.412 0.338-0.75 0.75-0.75h6.5c0.413 0 0.75 0.338 0.75 0.75v0.5c0 0.412-0.337 0.75-0.75 0.75h-6.5c-0.412 0-0.75-0.338-0.75-0.75v-0.5zM30 2h-28c-1.106 0-2 0.894-2 2v3c0 0.55 0.45 1 1 1h30c0.55 0 1-0.45 1-1v-3c0-1.106-0.894-2-2-2z"></path>
    </svg>
  SVG
end

#titleObject



18
19
20
21
# File 'app/components/blacklight/icons/collections_component.rb', line 18

def title
  key = "blacklight.icon.#{name}"
  t(key)
end