Class: Blacklight::Icons::PolylineComponent

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

Instance Method Summary collapse

Instance Method Details

#svgObject



8
9
10
11
12
13
14
15
16
17
18
# File 'app/components/blacklight/icons/polyline_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="none" stroke="#6c757d" stroke-miterlimit="10" stroke-width="1.52" d="M13.4.76h6.34v6.33H13.4V.76zM.76 24.9h6.33v6.34H.76v-6.33z"/>
    	<path fill="none" stroke="#6c757d" stroke-miterlimit="10" stroke-width="3.04" d="M7.1 24.9L16 7.1"/>
    	<path fill="none" stroke="#6c757d" stroke-miterlimit="10" stroke-width="1.52" d="M24.8 15.96h6.34v6.33H24.8v-6.33z"/>
    	<path fill="none" stroke="#6c757d" stroke-miterlimit="10" stroke-width="3.04" d="M25.07 16.39l-6.99-9.37"/>
    </svg>
  SVG
end

#titleObject



20
21
22
23
# File 'app/components/blacklight/icons/polyline_component.rb', line 20

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