Sha256: dc5cda6bf677bcf67720e2674c58178bc6e01ccb7c0d4e6491d1b5c801c9d164

Contents?: true

Size: 645 Bytes

Versions: 6

Compression:

Stored size: 645 Bytes

Contents

<div class="widget">
  <h2><%= Alchemy.t('Your last updated pages') %>:</h2>
  <table>
  <% if @last_edited_pages.blank? %>
    <tr class="even">
      <td><%= Alchemy.t('no pages') %></td>
    </tr>
  <% else %>
    <% @last_edited_pages.each do |page| %>
    <tr class="<%= cycle('even', 'odd', :name => 'edited_pages') %>">
      <td>
        <%= link_to_if((page.locked_by.blank? || page.locked_by == current_alchemy_user.id), page.name, edit_admin_page_path(page)) %>
      </td>
      <td>
        <small><%= l(page.updated_at) %></small>
      </td>
    </tr>
    <% end %>
  <% end %>
  </table>
</div>
<% reset_cycle('edited_pages') %>

Version data entries

6 entries across 6 versions & 1 rubygems

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