Sha256: 4eed6227e8b3f8da9d237d27320ec173c33c79c15c64b047068dd0682289bc64

Contents?: true

Size: 1.03 KB

Versions: 15

Compression:

Stored size: 1.03 KB

Contents

<div class="widget">
  <h2><%= _t('Currently locked pages') %>:</h2>
  <table>
  <% if @locked_pages.blank? %>
    <tr class="even">
      <td><%= _t('no pages') %></td>
    </tr>
  <% else %>
    <% @locked_pages.each do |page| %>
    <tr class="<%= cycle('even', 'odd', :name => 'locked_pages') %>">
      <% if current_user.id == page.locked_by %>
      <td>
        <%= link_to(page.name, alchemy.edit_admin_page_path(page)) %>
      </td>
      <td>
        <small><%= _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="<%= _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

15 entries across 15 versions & 1 rubygems

Version Path
alchemy_cms-2.8.3 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-2.7.5 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-2.6.3 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-2.7.4 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-2.8.2 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-2.8.1 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-2.7.3 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-2.7.2 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-2.7.1 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-2.7.0 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-2.6.2.1 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-2.6.2 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-2.6.1 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-2.6.0 app/views/alchemy/admin/dashboard/_locked_pages.html.erb
alchemy_cms-2.6.0.rc5 app/views/alchemy/admin/dashboard/_locked_pages.html.erb