scinote-web/app/views/design_elements/index.html.erb

19 lines
477 B
Text

<%
icons_list = []
icons_file = File.join(Rails.root, 'vendor', 'assets', 'stylesheets', 'sn-icon-font.css')
File.open(icons_file, 'r') do |f|
f.each_line do |line|
if line.match(/sn-icon-([a-z0-9-]+):before/)
icons_list << $1
end
end
end
%>
<%= render partial: 'select' %>
<%= render partial: 'modals' %>
<%= render partial: 'icons', locals: {icons_list: icons_list} %>
<%= render partial: 'button', locals: {icons_list: icons_list} %>