Class: Blacklight::Icons::MitComponent
- Inherits:
-
IconComponent
- Object
- IconComponent
- Blacklight::Icons::MitComponent
- Defined in:
- app/components/blacklight/icons/mit_component.rb
Instance Method Summary collapse
Instance Method Details
#svg ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'app/components/blacklight/icons/mit_component.rb', line 8 def svg <<~SVG <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 29 32"> <title>#{title}</title> <path fill="none" stroke="#6c757d" stroke-width="6.75" d="M3.37 0v32M14.36 0v21.78M25.35 0v32"/> </svg> SVG end |
#title ⇒ Object
17 18 19 20 |
# File 'app/components/blacklight/icons/mit_component.rb', line 17 def title key = "blacklight.icon.#{name}" t(key) end |