Sha256: 55ce84058eed733d3aac73b682a7781be1057688f9accb79eff3b437bd6d5605

Contents?: true

Size: 1.53 KB

Versions: 11

Compression:

Stored size: 1.53 KB

Contents

<%= render 'tab_admin_menu' %>

<%= will_paginate @pages, inner_window: 2 %>

<table class='table table-striped'>
	<thead>
  	<tr>
	    <th><%= t 'activerecord.attributes.pages.title' %></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><%= page.author.name %></td>
				<td>
					<% if page.for_blog? %>
						<span class="glyphicon glyphicon-ok"></span>
					<% else %>
						<span class="glyphicon glyphicon-remove"></span>
					<% end %>
				</td>
				<td>
					<% if page.published_at %>
						<span class="glyphicon glyphicon-ok"></span>&nbsp;<%= link_to t('pages.unpublish'), unpublish_page_path(page), class: 'btn btn-xs btn-default', method: :post %>
					<% else %>
					  <span class="glyphicon glyphicon-remove"></span>&nbsp;<%= link_to t('pages.publish'), publish_page_path(page), class: 'btn btn-xs btn-default', method: :post %>
					<% end -%>
				</td>
		    <td>
		    	<%= link_to t('edit'), edit_page_path(page), class: 'btn btn-xs btn-default' %><%= link_to t('delete'), page, method: :delete, data: { confirm: t('are_you_sure') }, class: 'btn btn-xs btn-danger' %>
		    </td>
		  </tr>
		<% end %>
	</tbody>
</table>

<%= will_paginate @pages, inner_window: 2 %>

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

<%= render 'shared/admin_sidebar' %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
tkh_content-0.10.7 app/views/pages/index.html.erb
tkh_content-0.10.6 app/views/pages/index.html.erb
tkh_content-0.10.5.1 app/views/pages/index.html.erb
tkh_content-0.10.5 app/views/pages/index.html.erb
tkh_content-0.10.4 app/views/pages/index.html.erb
tkh_content-0.10.3 app/views/pages/index.html.erb
tkh_content-0.10.2 app/views/pages/index.html.erb
tkh_content-0.10.1 app/views/pages/index.html.erb
tkh_content-0.10 app/views/pages/index.html.erb
tkh_content-0.9.20 app/views/pages/index.html.erb
tkh_content-0.9.19 app/views/pages/index.html.erb