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

20 lines
477 B
Text
Raw Normal View History

<%
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' %>
2024-01-24 16:47:45 +08:00
2024-01-20 03:33:34 +08:00
<%= render partial: 'modals' %>
<%= render partial: 'icons', locals: {icons_list: icons_list} %>
<%= render partial: 'button', locals: {icons_list: icons_list} %>