Sha256: 0fcdf0e2080ccf6a2119119101a074c83123d55049183dcefad5b5f11f6b548b

Contents?: true

Size: 1.59 KB

Versions: 38

Compression:

Stored size: 1.59 KB

Contents

<% colspan = multi_site? ? 5 : 4 %>
<div class="widget">
  <table class="list">
    <tr>
      <th colspan="<%= colspan %>"><%= Alchemy.t('Currently locked pages') %></th>
    </tr>
  <% if @all_locked_pages.blank? %>
    <tr>
      <td colspan="<%= colspan %>"><%= Alchemy.t('no pages') %></td>
    </tr>
  <% else %>
    <% @all_locked_pages.each do |page| %>
    <tr class="<%= cycle('even', 'odd', name: 'locked_pages') %>">
      <td>
        <% if current_alchemy_user.id == page.locked_by %>
        <%= link_to(page.name, alchemy.edit_admin_page_path(page)) %>
        <% else %>
        <%= page.name %>
        <% end %>
      </td>
      <% if multi_site? %>
      <td>
        <small><%= page.site_name %></small>
      </td>
      <% end %>
      <td>
        <% if page.site_languages.many? %>
        <small><%= page.language.code.upcase %></small>
        <% end %>
      </td>
      <td>
        <% if current_alchemy_user.id == page.locked_by %>
        <small><%= Alchemy.t(:me) %></small>
        <% else %>
        <small><%= page.locker_name %></small>
        <% end %>
      </td>
      <td>
        <% if (current_alchemy_user.id == page.locked_by) || can?(:manage, Alchemy::Site.current) %>
        <%= form_tag(alchemy.unlock_admin_page_path(page, :redirect_to => alchemy.admin_dashboard_url)) do %>
          <button class="icon_button small" title="<%= Alchemy.t(:explain_unlocking) %>">
            <%= render_icon(:times, size: 'xs') %>
          </button>
        <% end %>
        <% end %>
      </td>
    </tr>
    <% end %>
  <% end %>
  </table>
</div>
<% reset_cycle('locked_pages') %>

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
alchemy_cms-7.0.16 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-7.0.15 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-6.1.10 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-7.0.14 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-7.0.13 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-7.0.12 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-7.0.11 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-7.0.10 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-7.0.9 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-7.0.8 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-7.0.7 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-7.0.6 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-7.0.5 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-7.0.4 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-7.0.3 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-6.1.9 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-7.0.2 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-6.1.8 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-6.1.7 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-7.0.1 app/views/alchemy/admin/dashboard/_locked_pages.html.erb