Sha256: 5d294cd34680c0cfd5e37e908542616bae094bd964f96a080d6e64550a02d70f

Contents?: true

Size: 992 Bytes

Versions: 16

Compression:

Stored size: 992 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 => 'alchemy/admin/elements/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 => 'alchemy/admin/elements/element', :collection => @elements, :locals => {:draggable => true} %>
  </div>
  <% end -%>
</div>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
alchemy_cms-2.2.4 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-2.2.3.2 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-2.2.3.1 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-2.2.2 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-2.2.1 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-2.2.0 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-2.2.rc15 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-2.2.rc14 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-2.2.rc13 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-2.2.rc11 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-2.2.rc8 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-2.2.rc7 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-2.2.rc6 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-2.2.rc3 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-2.2.rc2 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-2.2.rc1 app/views/alchemy/admin/elements/index.html.erb