scinote-web/app/views/design_elements/index.html.erb
2024-07-25 14:06:26 +02:00

21 lines
509 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: 'radio' %>
<%= render partial: 'select' %>
<%= render partial: 'modals' %>
<%= render partial: 'icons', locals: {icons_list: icons_list} %>
<%= render partial: 'button', locals: {icons_list: icons_list} %>