Sha256: 6d64c4724c4c1f1eb0f45d6dc86848efac7e30c4c126d4f5e7b86e33c6fc68dc

Contents?: true

Size: 1.96 KB

Versions: 4

Compression:

Stored size: 1.96 KB

Contents

<li class="page_level_<%= layoutpage.level %>" id="page_<%= layoutpage.id %>">
  <div class="sitemap_page<%= layoutpage.locked? ? ' locked' : '' %>">
    <div class="sitemap_left_images">
    <% if layoutpage.definition.blank? %>
      <span class="inline warning icon" title="<%= Alchemy.t(:page_definition_missing) %>"></span>
    <% else %>
      <%= render_icon(:page) %>
    <% end %>
    </div>
    <div class="sitemap_right_tools">
      <%- if can?(:configure, layoutpage) -%>
      <%= link_to_dialog(
        render_icon('configure_page'),
        alchemy.edit_admin_layoutpage_path(layoutpage),
        {
          title: Alchemy.t(:edit_page_properties),
          size: '410x170'
        },
        class: 'sitemap_tool',
        title: Alchemy.t(:edit_page_properties)
      ) -%>
      <%- end -%>
      <span class="sitemap_sitetools">
      <%- if can?(:copy, layoutpage) -%>
        <%= link_to(
          render_icon("copy_page"),
          alchemy.insert_admin_clipboard_path(
            remarkable_type: layoutpage.class.name.demodulize.underscore.pluralize,
            remarkable_id: layoutpage.id
          ),
          remote: true,
          method: 'post',
          class: "sitemap_tool",
          title: Alchemy.t(:copy_page)
        ) %>
      <%- end -%>
      <%- if can?(:destroy, layoutpage) -%>
        <%= link_to_confirm_dialog(
          render_icon('delete_page'),
          Alchemy.t(:confirm_to_delete_page),
          url_for(
            controller: 'pages',
            action: 'destroy',
            id: layoutpage.id
          ),
          {
            class: "sitemap_tool",
            title: Alchemy.t(:delete_page)
          }
        ) -%>
      <%- end -%>
      </span>
    </div>
    <div class="sitemap_sitename">
      <%= link_to(
        layoutpage.name,
        alchemy.edit_admin_page_path(layoutpage),
        title: Alchemy.t(:edit_page),
        class: "sitemap_pagename_link #{cycle('even', 'odd')}"
      ) -%>
    </div>
  </div>
</li>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alchemy_cms-3.4.2 app/views/alchemy/admin/layoutpages/_layoutpage.html.erb
alchemy_cms-3.4.1 app/views/alchemy/admin/layoutpages/_layoutpage.html.erb
alchemy_cms-3.4.0 app/views/alchemy/admin/layoutpages/_layoutpage.html.erb
alchemy_cms-3.4.0.rc1 app/views/alchemy/admin/layoutpages/_layoutpage.html.erb