Sha256: 58eaa7d95ef1c6e9ba869d815d3f4c229ecfc2963ca1c47695790f6a271ef855

Contents?: true

Size: 1.42 KB

Versions: 9

Compression:

Stored size: 1.42 KB

Contents

<div class="element_head">
  <div class="element_handle">
    <span class="element_icon"></span>
    <%- if element.description.nil? -%>
    <span class="warning icon" title="<%= t("Warning: Element '%{elementname}' is missing its description.", :elementname => element.name) %>"></span>
    <%- else -%>
    <%= render_icon("element_#{element.public? ? 'public' : 'draft'}") %>
    <%- end -%>
  </div>
  <span class="element_heading">
    <span class="preview_text_element_name"><%= element.display_name %></span>
    <span class="preview_text_quote"><%= sanitize(element.preview_text) %></span>
  </span>
  <span class="ajax_folder" <%= element.trashed? ? 'style="display: none"'.html_safe : '' %>>
    <%= image_tag(
      "alchemy/ajax_loader.gif",
      :style => "display: none",
      :id => "element_#{element.id}_folder_spinner",
      :class => "element_folder_spinner"
    ) %>
    <%= link_to_function(
      "",
      "Alchemy.toggleElement(#{element.id}, '#{alchemy.fold_admin_element_path(element)}', '#{form_authenticity_token}', {title: '#{ t('Warning!') }', message: '#{ t('This element has unsaved changes. Do you really want to fold it?') }', okLabel: '#{ t('Yes') }', cancelLabel: '#{ t('No') }'})",
      :class => element.folded? ? 'expand_element' : 'fold_element',
      :title => element.folded? ? t('show_element_content') : t('hide_element_content'),
      :id => "element_#{element.id}_folder"
    ) %>
  </span>
</div>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
alchemy_cms-2.1.1 app/views/alchemy/admin/elements/_element_head.html.erb
alchemy_cms-2.1 app/views/alchemy/admin/elements/_element_head.html.erb
alchemy_cms-2.1.rc6 app/views/alchemy/admin/elements/_element_head.html.erb
alchemy_cms-2.1.rc5 app/views/alchemy/admin/elements/_element_head.html.erb
alchemy_cms-2.1.rc4 app/views/alchemy/admin/elements/_element_head.html.erb
alchemy_cms-2.1.rc3 app/views/alchemy/admin/elements/_element_head.html.erb
alchemy_cms-2.1.rc2 app/views/alchemy/admin/elements/_element_head.html.erb
alchemy_cms-2.1.beta6 app/views/alchemy/admin/elements/_element_head.html.erb
alchemy_cms-2.1.beta5 app/views/alchemy/admin/elements/_element_head.html.erb