Class: Blacklight::Icons::TuftsComponent
- Inherits:
-
IconComponent
- Object
- IconComponent
- Blacklight::Icons::TuftsComponent
- Defined in:
- app/components/blacklight/icons/tufts_component.rb
Instance Method Summary collapse
Instance Method Details
#svg ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'app/components/blacklight/icons/tufts_component.rb', line 8 def svg " <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 29 32\">\n <title>\#{title}</title>\n <path fill=\"#6c757d\" d=\"M4.58 5.12h5.96v22.4H5.62V32h17.31v-4.49h-4.91V5.15h6.1v7.28h4.5V0H0v12.43h4.58z\"/>\n </svg>\n SVG\nend\n" |
#title ⇒ Object
17 18 19 20 |
# File 'app/components/blacklight/icons/tufts_component.rb', line 17 def title key = "blacklight.icon.#{name}" t(key) end |