Sha256: d34bf509c29f7452ad47c1ea79559a6975f533ec963399321f1ea81585f504e7
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
Contents
<table class="table table-striped table-bordered"> <thead> <tr> <th><%= SimplePages::Page.human_attribute_name(:title) %></th> <th><%= SimplePages::Page.human_attribute_name(:layout_at) %></th> <th><%= SimplePages::Page.human_attribute_name(:author) %></th> <th><%= SimplePages::Page.human_attribute_name(:published_at) %></th> <th><%= t('helpers.actions') %></th> </tr> </thead> <tbody> <% pages.each do |page| %> <tr> <td><%= page.title %></td> <td><%= t(page.layout_at, scope: 'simple_pages.layout_at') if page.layout_at? %></td> <td><%= page.author.name %></td> <td><%= publish_time(page.published_at, page.updated_at) %></td> <td class="actions"> <%= render_btn_group do |btn| if can? :show, page btn << link_to_show(page_path(page)) end if can? :edit, page btn << link_to_edit(edit_page_path(page)) end if can? :destroy, page btn << link_to_destroy(page_path(page)) end end %> </td> </tr> <% end %> </tbody> </table>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple-pages-rails-0.7.0 | app/views/simple_pages/pages/_table.html.erb |
simple-pages-rails-0.6.0 | app/views/simple_pages/pages/_table.html.erb |