Sha256: 3012a9c20ae14c8e34f7a9c532317e51b6a058ece934dfc2365a227437dcce26

Contents?: true

Size: 1.37 KB

Versions: 19

Compression:

Stored size: 1.37 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(:element_dirty_notice) }', 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

19 entries across 19 versions & 1 rubygems

Version Path
alchemy_cms-2.1.12 app/views/alchemy/admin/elements/_element_head.html.erb
alchemy_cms-2.1.11 app/views/alchemy/admin/elements/_element_head.html.erb
alchemy_cms-2.2.rc11 app/views/alchemy/admin/elements/_element_head.html.erb
alchemy_cms-2.2.rc8 app/views/alchemy/admin/elements/_element_head.html.erb
alchemy_cms-2.2.rc7 app/views/alchemy/admin/elements/_element_head.html.erb
alchemy_cms-2.1.9.1 app/views/alchemy/admin/elements/_element_head.html.erb
alchemy_cms-2.1.9 app/views/alchemy/admin/elements/_element_head.html.erb
alchemy_cms-2.2.rc6 app/views/alchemy/admin/elements/_element_head.html.erb
alchemy_cms-2.1.8.1 app/views/alchemy/admin/elements/_element_head.html.erb
alchemy_cms-2.2.rc3 app/views/alchemy/admin/elements/_element_head.html.erb
alchemy_cms-2.1.8 app/views/alchemy/admin/elements/_element_head.html.erb
alchemy_cms-2.2.rc2 app/views/alchemy/admin/elements/_element_head.html.erb
alchemy_cms-2.2.rc1 app/views/alchemy/admin/elements/_element_head.html.erb
alchemy_cms-2.1.7 app/views/alchemy/admin/elements/_element_head.html.erb
alchemy_cms-2.1.6 app/views/alchemy/admin/elements/_element_head.html.erb
alchemy_cms-2.1.5 app/views/alchemy/admin/elements/_element_head.html.erb
alchemy_cms-2.1.4 app/views/alchemy/admin/elements/_element_head.html.erb
alchemy_cms-2.1.3 app/views/alchemy/admin/elements/_element_head.html.erb
alchemy_cms-2.1.2 app/views/alchemy/admin/elements/_element_head.html.erb