Sha256: b2da98e7d6a08b0c2bfc249fabeeae95305153d3ddb8ee2b6b416d8866cb21a0
Contents?: true
Size: 1.48 KB
Versions: 2
Compression:
Stored size: 1.48 KB
Contents
<% if @cells.any? %> <div id="cells"> <ul> <li><a href="#cell_for_other_elements"><%= _t(:main_content) %></a></li> <% @elements.each do |cell, elements| %> <li> <a href="#cell_<%= cell.name %>"> <%= _t(cell.name, scope: 'cell_names') %> </a> </li> <% end %> </ul> <div id="cell_for_other_elements" class="sortable_cell for_other_elements_cell"> <%= render 'add_element_button', expanded: @page.elements.not_trashed.not_in_cell.empty?, id: 'insert_element_top' %> <%= render partial: 'alchemy/admin/elements/element', collection: @page.elements.not_trashed.not_in_cell, locals: {draggable: true} %> </div> <% @elements.each do |cell, elements| -%> <div id="cell_<%= cell.name %>" class="sortable_cell <%= cell.name %>_cell" data-cell-id="<%= cell.id %>"> <%= render 'add_element_button', expanded: elements.empty?, id: 'insert_element_top' %> <%= render partial: 'alchemy/admin/elements/element', collection: elements, locals: {draggable: true} %> </div> <% end %> </div> <% else %> <div class="sortable_cell for_other_elements_cell" id="cell_for_other_elements"> <%= render 'add_element_button', expanded: @elements.empty?, id: 'insert_element_top' %> <%= render partial: 'alchemy/admin/elements/element', collection: @elements, locals: {draggable: true} %> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alchemy_cms-3.0.0.rc7 | app/views/alchemy/admin/elements/index.html.erb |
alchemy_cms-3.0.0.rc6 | app/views/alchemy/admin/elements/index.html.erb |