Class: Blacklight::Icons::PaperMapComponent

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

Instance Method Summary collapse

Instance Method Details

#svgObject



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

def svg
  <<~SVG
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
    	<title>#{title}</title>
    	<path fill="#6c757d" d="M0 6l10-4v24L0 30V6zm22 0v24l-10-3.33v-24zm10-4v24l-8 3.2v-24z"/>
    </svg>
  SVG
end

#titleObject



17
18
19
20
# File 'app/components/blacklight/icons/paper_map_component.rb', line 17

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