Sha256: 31134185124f46c010e37c7e3c005d2f42c8281f8513ec24d39926571a6dcf14

Contents?: true

Size: 1.06 KB

Versions: 3

Compression:

Stored size: 1.06 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("%d/%m/%Y at %H:%M") %> – [ 
		   <%= link_to_edit comment %> | 
		   <%= link_to_destroy comment %> | 
		   <%= comment.state %> ]
		</p>
	  </li>
	<% end -%>
	</ol>
  </div>
  
  <h3 id="comment"><%= _("Creating comment")%></h3>
  <% form_tag :action=>"new" do %>

  <div class="form">
    <%= render_partial "form" %>

    <div id="operations">
      <%= save %> or <%= cancel %>
    </div>

  </div>
  <% end %>
  

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
typo-5.0.1 app/views/admin/comments/list.html.erb
typo-5.0.2 app/views/admin/comments/list.html.erb
typo-5.0 app/views/admin/comments/list.html.erb