Sha256: 630349ab8c382bada12c1d4f3c3029e759460bea8eeb8fbd41d067f69b31d7f2

Contents?: true

Size: 1.22 KB

Versions: 21

Compression:

Stored size: 1.22 KB

Contents

<h1><%= t('activerecord.models.comments') %></h1>

<%= render 'tab_admin_menu' %>

<p><%= t('comments.sorted_by_oldest') %></p>

<table class='table table-striped'>
	<thead>
  	<tr>
	    <th><%= t('activerecord.attributes.comments.author') %>, <%= t('activerecord.models.page') %>, <%= t('activerecord.attributes.comments.locale') %><br />
					<%= t('activerecord.attributes.comments.body') %></th>
			<th><%= t('activerecord.attributes.comments.status') %></th>
	    <th><%= t('actions') %></th>
	  </tr>
	</thead>
	
	<tbody>
		<% @comments.each do |comment| %>
		  <tr>
		    <td><%= comment.author.name %> - <%= link_to comment.page.title, comment.page %> | <%= comment.locale %><br /><br />
						<%= sanitize comment.body.gsub(/\r\n?/, "<br>"), :tags => %w(br), :attributes => %w() %></td>
				<td><%= t("comments.status.#{comment.status}") %><%= t 'colon' %><%= render 'comments/status_buttons', comment: comment %></td>
		    <td><%= link_to t('edit'), edit_comment_path(comment), class: 'btn btn-mini' %><%= link_to t('delete'), comment, method: :delete, data: { confirm: t('are_you_sure') }, class: 'btn btn-mini btn-danger' %></td>
		  </tr>
		<% end %>
	</tbody>
</table>

<%= will_paginate @comments %>

<%= render 'shared/admin_sidebar' %>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
tkh_content-0.9.15 app/views/comments/pending.html.erb
tkh_content-0.9.14 app/views/comments/pending.html.erb
tkh_content-0.9.13 app/views/comments/pending.html.erb
tkh_content-0.9.12 app/views/comments/pending.html.erb
tkh_content-0.9.11 app/views/comments/pending.html.erb
tkh_content-0.9.10 app/views/comments/pending.html.erb
tkh_content-0.9.9 app/views/comments/pending.html.erb
tkh_content-0.9.8 app/views/comments/pending.html.erb
tkh_content-0.9.7 app/views/comments/pending.html.erb
tkh_content-0.9.6 app/views/comments/pending.html.erb
tkh_content-0.9.5 app/views/comments/pending.html.erb
tkh_content-0.9.4 app/views/comments/pending.html.erb
tkh_content-0.9.3 app/views/comments/pending.html.erb
tkh_content-0.9.2 app/views/comments/pending.html.erb
tkh_content-0.4.7 app/views/comments/pending.html.erb
tkh_content-0.9.1 app/views/comments/pending.html.erb
tkh_content-0.9 app/views/comments/pending.html.erb
tkh_content-0.4.6 app/views/comments/pending.html.erb
tkh_content-0.4.5 app/views/comments/pending.html.erb
tkh_content-0.4.4 app/views/comments/pending.html.erb