Class: Blacklight::Icons::PaperMapComponent
- Inherits:
-
IconComponent
- Object
- IconComponent
- Blacklight::Icons::PaperMapComponent
- Defined in:
- app/components/blacklight/icons/paper_map_component.rb
Instance Method Summary collapse
Instance Method Details
#svg ⇒ Object
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 |
#title ⇒ Object
17 18 19 20 |
# File 'app/components/blacklight/icons/paper_map_component.rb', line 17 def title key = "blacklight.icon.#{name}" t(key) end |