Sha256: 31d7722b068ce23e3b5988e81495bbd84f3d1bd2dea4c97eefad5b33bfe313bd

Contents?: true

Size: 1.07 KB

Versions: 21

Compression:

Stored size: 1.07 KB

Contents

<div class="element-header<%= ' has-hint' if element.has_hint? %>">
  <span class="element-handle">
    <%= render_icon(:element) %>
    <% if element.definition.blank? %>
      <%= hint_with_tooltip(
        Alchemy.t(:element_definition_missing),
        class: 'warning icon'
      ) %>
    <% else %>
      <%= render_icon("element_#{element.public? ? 'public' : 'draft'}") %>
    <% end %>
  </span>
  <span class="element-title">
    <span class="preview_text_element_name"><%= element.display_name %></span>
    <span class="preview_text_quote">
      <%= sanitize(element.preview_text.presence || '&nbsp;') %>
    </span>
  </span>
  <%= render_hint_for(element) unless element.trashed? %>
  <span class="ajax-folder" <%= element.trashed? ? 'style="display: none"'.html_safe : '' %>>
    <%= link_to '', '#', {
      'data-element-toggle' => element.id,
      class: element.folded? ? 'expand_element' : 'fold_element',
      title: element.folded? ? Alchemy.t(:show_element_content) : Alchemy.t(:hide_element_content),
      id: "element_#{element.id}_folder"
    } %>
  </span>
</div>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
alchemy_cms-4.0.6 app/views/alchemy/admin/elements/_element_header.html.erb
alchemy_cms-3.6.7 app/views/alchemy/admin/elements/_element_header.html.erb
alchemy_cms-3.6.6 app/views/alchemy/admin/elements/_element_header.html.erb
alchemy_cms-4.0.5 app/views/alchemy/admin/elements/_element_header.html.erb
alchemy_cms-4.0.4 app/views/alchemy/admin/elements/_element_header.html.erb
alchemy_cms-4.0.3 app/views/alchemy/admin/elements/_element_header.html.erb
alchemy_cms-3.6.5 app/views/alchemy/admin/elements/_element_header.html.erb
alchemy_cms-4.0.2 app/views/alchemy/admin/elements/_element_header.html.erb
alchemy_cms-4.0.1 app/views/alchemy/admin/elements/_element_header.html.erb
alchemy_cms-3.6.4 app/views/alchemy/admin/elements/_element_header.html.erb
alchemy_cms-4.0.0 app/views/alchemy/admin/elements/_element_header.html.erb
alchemy_cms-3.6.3 app/views/alchemy/admin/elements/_element_header.html.erb
alchemy_cms-3.6.2 app/views/alchemy/admin/elements/_element_header.html.erb
alchemy_cms-4.0.0.rc2 app/views/alchemy/admin/elements/_element_header.html.erb
alchemy_cms-4.0.0.rc1 app/views/alchemy/admin/elements/_element_header.html.erb
alchemy_cms-3.6.1 app/views/alchemy/admin/elements/_element_header.html.erb
alchemy_cms-4.0.0.beta app/views/alchemy/admin/elements/_element_header.html.erb
alchemy_cms-3.6.0 app/views/alchemy/admin/elements/_element_header.html.erb
alchemy_cms-3.5.0 app/views/alchemy/admin/elements/_element_header.html.erb
alchemy_cms-3.5.0.rc2 app/views/alchemy/admin/elements/_element_header.html.erb