Sha256: 2837bdd6e4fe4d3399ff89cf24314afcbc1dca912f4ba7b2293a88a5b8ea8824

Contents?: true

Size: 1.15 KB

Versions: 108

Compression:

Stored size: 1.15 KB

Contents

<% if @fixed_elements.any? %>
  <div id="fixed-elements">
    <ul>
      <li>
        <a href="#main-content-elements">
          <%= Alchemy.t(:main_content) %>
        </a>
      </li>
      <% @fixed_elements.each do |element| %>
        <li>
          <a href="#fixed-element-<%= element.id %>">
            <%= element.display_name %>
          </a>
        </li>
      <% end %>
    </ul>
    <div id="main-content-elements" class="sortable-elements" data-droppable-elements="<%= @page.element_definition_names.join(' ') %>">
      <%= render @elements.map { |element| Alchemy::ElementEditor.new(element) } %>
    </div>
    <% @fixed_elements.each do |element| %>
      <div
        id="fixed-element-<%= element.id %>"
        class="sortable-elements"
        data-droppable-elements="<%= element.nestable_elements.join(' ') %>">
        <%= render Alchemy::ElementEditor.new(element) %>
      </div>
    <% end %>
  </div>
<% else %>
  <div id="main-content-elements" class="sortable-elements" data-droppable-elements="<%= @page.element_definition_names.join(' ') %>">
    <%= render @elements.map { |element| Alchemy::ElementEditor.new(element) } %>
  </div>
<% end %>

Version data entries

108 entries across 108 versions & 1 rubygems

Version Path
alchemy_cms-7.0.0 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-7.0.0.pre.rc1 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-6.1.6 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-7.0.0.pre.c app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-7.0.0.pre.b app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-6.1.5 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-6.0.14 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-6.1.4 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-7.0.0.pre.a app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-6.0.13 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-6.1.3 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-6.1.2 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-6.1.1 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-6.1.0 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-6.0.12 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-6.0.11 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-6.0.10 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-5.3.8 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-6.0.9 app/views/alchemy/admin/elements/index.html.erb
alchemy_cms-5.3.7 app/views/alchemy/admin/elements/index.html.erb