Sha256: 36a5d0a38f538f0ea264a0134339a76be01ccb8dfb499ba592b321d9498310c6
Contents?: true
Size: 1.7 KB
Versions: 8
Compression:
Stored size: 1.7 KB
Contents
<h1><%= t 'activerecord.models.pages' %></h1> <%= render 'tab_admin_menu' %> <table class='table table-striped'> <thead> <tr> <th><%= t 'activerecord.attributes.pages.title' %></th> <th><%= t 'activerecord.attributes.pages.description' %></th> <th><%= t 'pages.author' %></th> <th><%= t 'activerecord.attributes.pages.for_the_blog' %>?</th> <th><%= t 'pages.published' %></th> <th><%= t('actions') %></th> </tr> </thead> <tbody> <% @pages.each do |page| %> <tr> <td><%= link_to page.title, page %></td> <td><%= truncate page.description, length: 55, separator: ' ...' %></td> <td><%= page.author.name %></td> <td> <%= page.for_blog? ? "<span class=\"label label-success\">✓</span>".html_safe : "<span class=\"label label-important\">X</span>".html_safe %> <%= link_to t('toggle'), toggle_for_blog_page_path(page), class: 'btn btn-mini', method: :post %> </td> <td> <% if page.published_at %> <span class="label label-success">✓</span> <%= link_to t('pages.unpublish'), unpublish_page_path(page), class: 'btn btn-mini', method: :post %> <% else %> <span class="label label-important">X</span> <%= link_to t('pages.publish'), publish_page_path(page), class: 'btn btn-mini btn-primary', method: :post %> <% end -%> </td> <td><%= link_to t('edit'), edit_page_path(page), class: 'btn btn-mini' %> <%= link_to t('delete'), page, method: :delete, data: { confirm: t('are_you_sure') }, class: 'btn btn-mini btn-danger' %></td> </tr> <% end %> </tbody> </table> <%= will_paginate @pages %> <%= link_to t('pages.create_new').capitalize, new_page_path, class: 'btn btn-primary' %> <%= render 'shared/admin_sidebar' %>
Version data entries
8 entries across 8 versions & 1 rubygems