Sha256: 33ddb61c27391203dbd0eb1599f01231e3c6f35bb3f74b0bcd06e9705a759a41

Contents?: true

Size: 909 Bytes

Versions: 1

Compression:

Stored size: 909 Bytes

Contents

<h1>Listing Pages</h1>

<table class='table table-striped'>
	<thead>
  <tr>
	    <th><%= t 'activerecord.attributes.pages.title' %></th>
	    <th><%= t 'activerecord.attributes.pages.description' %></th>
			<th><%= t 'activerecord.attributes.pages.for_blog' %>?</th>
	    <th>Actions</th>
	  </tr>
	</thead>
	
	<tbody>
		<% @pages.each do |page| %>
		  <tr>
		    <td><%= link_to page.title, page_path(page) %></td>
		    <td><%= truncate page.description, length: 55, separator: ' ...' %></td>
				<td><%= page.for_blog? ? '✓' : 'X' %></td>
		    <td><%= link_to t('edit'), 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>

<%= link_to t('pages.create_new').capitalize, new_page_path, class: 'btn btn-primary' %>

<%= render 'shared/admin_sidebar' %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tkh_content-0.0.1 app/views/pages/index.html.erb