Sha256: a7646d0c644c4f635d4619150b1f83465d50f2a21666426ec05fe5009474d4ec

Contents?: true

Size: 1.12 KB

Versions: 25

Compression:

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

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
alchemy_cms-3.2.1 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-3.1.3 app/views/alchemy/admin/elements/index.html.erb
lc_alchemy_cms-3.2.1 app/views/alchemy/admin/elements/index.html.erb
lc_alchemy_cms-3.2.0 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-3.2.0 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-3.2.0.rc1 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-3.2.0.beta app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-3.1.1 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-3.0.4 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-3.1.0 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-3.1.0.rc3 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-3.1.0.rc2 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-3.1.0.rc1 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-3.1.0.beta6 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-3.1.0.beta5 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-3.1.0.beta4 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-3.0.3 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-3.1.0.beta3 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-3.1.0.beta2 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-3.1.0.beta1 app/views/alchemy/admin/elements/index.html.erb