Sha256: ea9a5fe342a76c8ff00845f1cb7cb424830e3292e746f911514c01dc00e95c1a

Contents?: true

Size: 1.44 KB

Versions: 25

Compression:

Stored size: 1.44 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') %>">
      <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 %>
        <%= 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 %>
        <% end %>
      </td>
    </tr>
    <% end %>
  <% end %>
  </table>
</div>
<% reset_cycle('locked_pages') %>

Version data entries

25 entries across 25 versions & 1 rubygems

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