Class: Blacklight::Icons::DatasetsComponent

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

Instance Method Summary collapse

Instance Method Details

#svgObject



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

def svg
  <<~SVG
    <!-- Generated by IcoMoon.io -->
    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="30" height="32" viewBox="0 0 30 32">
    <title>#{title}</title>
    	<path fill="none" stroke="#6c757d" stroke-linejoin="miter" stroke-linecap="butt" stroke-miterlimit="4" stroke-width="1.72" d="M0.86 10.9h4.2v4.17h-4.2v-4.17zM16.87 10.9h4.2v4.17h-4.2v-4.17zM0.86 26.89h4.2v4.22h-4.2v-4.22zM16.87 26.89h4.2v4.22h-4.2v-4.22z"></path>
    <path fill="none" stroke="#6c757d" stroke-linejoin="miter" stroke-linecap="butt" stroke-miterlimit="4" stroke-width="3.44" d="M5.020 13.060h11.78M5.020 29.56h11.78M18.94 26.83v-11.76M3.010 26.83v-11.76"></path>
    <path fill="none" stroke="#6c757d" stroke-linejoin="miter" stroke-linecap="butt" stroke-miterlimit="4" stroke-width="1.72" d="M8.75 0.86h4.2v4.16h-4.2v-4.16zM24.76 0.86h4.2v4.16h-4.2v-4.16zM8.75 16.84h4.2v4.23h-4.2v-4.23zM24.76 16.84h4.2v4.22h-4.2v-4.22z"></path>
    <path fill="none" stroke="#6c757d" stroke-linejoin="miter" stroke-linecap="butt" stroke-miterlimit="4" stroke-width="3.44" d="M12.91 3.010h11.77M12.91 19.52h11.77M26.83 16.79v-11.77M10.9 16.79v-11.77"></path>
    </svg>
  SVG
end

#titleObject



21
22
23
24
# File 'app/components/blacklight/icons/datasets_component.rb', line 21

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