Sha256: 19356a8213891b89d8745002a3f97ed4b59f773bf8fb09a8cf495a1a103ef0e8
Contents?: true
Size: 919 Bytes
Versions: 7
Compression:
Stored size: 919 Bytes
Contents
<div id="element_area"> <% if @cells.any? -%> <div id="cells"> <ul> <% @elements.each do |cell, elements| -%> <% if elements.any? -%> <li> <a href="#cell_<%= cell.name -%>"> <%= cell.name == 'for_other_elements' ? t(:main_content) : t(cell.name, :scope => :cell_names) -%> </a> </li> <% end -%> <% end -%> </ul> <% @elements.each do |cell, elements| -%> <% if elements.any? -%> <div id="cell_<%= cell.name %>" class="sortable_cell <%= cell.name %>_cell" data-cell-id="<%= cell.id %>"> <%= render :partial => 'element', :collection => elements, :locals => {:draggable => true} %> </div> <% end -%> <% end -%> </div> <% else -%> <div class="sortable_cell for_other_elements_cell" id="cell_for_other_elements"> <%= render :partial => @elements, :locals => {:draggable => true} %> </div> <% end -%> </div>
Version data entries
7 entries across 7 versions & 1 rubygems