Sha256: 07f16cef79176779369b25a6bcec67ea38fa916e74a139828b0643796fe23e1d

Contents?: true

Size: 1.09 KB

Versions: 6

Compression:

Stored size: 1.09 KB

Contents

  <% @page_heading = "Comments for #{ link_to h(@article.title), :controller => '/admin/content', :action => 'show', :id => @article } (#{ link_to 'add a comment', '#comment' })" %>

  <% content_for('tasks') do %>
    <li><%= link_to _('Manage articles'), :controller => '/admin/content', :action => 'list' %></li>
  <% end %> 

  <div class="list">
	<ol>
	<% for comment in @comments -%>
	  <li <%= alternate_class %>>
	    <p><strong><%= mail_to h(comment.email), h(comment.author) %></strong> |
		<%= link_to_unless comment.url.blank?, h(comment.url), comment.url %> | 
		IP: <%=h comment.ip %></p>
		<%= comment.body %>
		<p><%=comment.created_at.strftime("%m/%d/%Y at %H:%M") %> – [ 
		   <%= link_to_edit comment %> | 
		   <%= link_to image_tag('admin/delete.png'), {:action => 'destroy', :id => comment.id, :search => params[:search], :page => params[:page] },  :confirm => "Are you sure?", :method => :post %> |
		   <%= comment.state %> ]
		</p>
	  </li>
	<% end -%>
	</ol>
  </div>
<hr />  
  <% form_tag :action=>"new" do %>
    <%= render_partial "form" %>

    <%= cancel_or_save %>
  <% end %>
  

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
typo-5.0.3.98.1 app/views/admin/comments/index.html.erb
typo-5.0.3.98 app/views/admin/comments/index.html.erb
typo-5.1.1 app/views/admin/comments/index.html.erb
typo-5.1.2 app/views/admin/comments/index.html.erb
typo-5.1.3 app/views/admin/comments/index.html.erb
typo-5.1 app/views/admin/comments/index.html.erb