Sha256: ba0c79c27fe0e41d7b336697f460b469af5c0955dad7a9617f8e852eae921480

Contents?: true

Size: 1.07 KB

Versions: 6

Compression:

Stored size: 1.07 KB

Contents

<div class="widget">
  <h2><%= Alchemy.t('Currently locked pages') %>:</h2>
  <table>
  <% if @all_locked_pages.blank? %>
    <tr class="even">
      <td><%= Alchemy.t('no pages') %></td>
    </tr>
  <% else %>
    <% @all_locked_pages.each do |page| %>
    <tr class="<%= cycle('even', 'odd', :name => 'locked_pages') %>">
      <% if current_alchemy_user.id == page.locked_by %>
      <td>
        <%= link_to(page.name, alchemy.edit_admin_page_path(page)) %>
      </td>
      <td>
        <small><%= Alchemy.t(:me) %></small>
      </td>
      <td>
        <%= 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('close small') %>
          </button>
        <% end %>
      </td>
      <% else %>
      <td>
        <%= page.name %>
      </td>
      <td colspan="2">
        <small><%= page.locker_name %></small>
      </td>
    <% end %>
    </tr>
    <% end %>
  <% end %>
  </table>
</div>
<% reset_cycle('locked_pages') %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
alchemy_cms-3.3.3 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-3.3.2 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-3.3.1 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-3.3.0 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-3.3.0.rc2 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-3.3.0.rc1 app/views/alchemy/admin/dashboard/_locked_pages.html.erb