Sha256: 5ae3c2014d9cb1b763543a15c7aba52303b3dd656403e198b495abd9aeb2f346

Contents?: true

Size: 1.31 KB

Versions: 1

Compression:

Stored size: 1.31 KB

Contents

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

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

  <div class="list">	
    <table>
    <tr>
      <th><%= _("Author")%></th>
      <th><%= _("Email")%></th>
      <th><%= _("Body")%></th>
      <th><%= _("IP")%></th>
      <th><%= _("Posted date")%></th>
	  <th><%= _("Status")%></th>
	  <th colspan="3"><%= _("Action") %></th>
    </tr>
    <% for comment in @comments -%>
    <tr>
      <td class="field"> <%=link_to_unless comment.url.blank?, h(comment.author), comment.url %></td>
      <td class="field"><%=h comment.email %></td>
      <td class="field"><%= link_to_permalink comment, truncate((comment.body).strip_html) %></td>
      <td class="field"><%=h comment.ip %></td>
      <td class="field"><%=comment.created_at.strftime("%d/%m/%Y at %H:%M") %></td>
	  <td class="operation"><%= image_tag 'checked.png' %></td>
	  <td class="operation"><%= link_to_show comment %></td>
      <td class="operation"><%= link_to_edit comment %></td>
      <td class="operation"><%= link_to_destroy comment %></td>    
    </tr>  
    <% end -%>
    </table>
  </div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
typo-4.1.1 app/views/admin/comments/list.rhtml