Sha256: d168a6535ee41aa36c73ab76de181fc98cf99a177c4e7474f06688e312d43bd1

Contents?: true

Size: 1.2 KB

Versions: 9

Compression:

Stored size: 1.2 KB

Contents

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

  <% content_for('tasks') do %>
    <li><%= link_to 'Back to articles', :controller => 'content', :action => 'list' %></li>
    <%= task_new('Create new comment') %>
  <% end %> 

  <div class="list">	
    <table>
    <tr>
      <th>Author</th>
      <th>Email</th>
      <th>Body</th>
      <th>IP</th>
      <th>Posted date</th>
      <th>Edit</th>
      <th>Delete</th>
    </tr>
    <% for comment in @comments -%>
    <tr>
      <td class="field"><%= image_tag 'checked.gif' %> <%=link_to_unless comment.url.blank?, h(comment.author), comment.url %></td>
      <td class="field"><%=h comment.email %></td>
      <td class="field"><%=link_to truncate(strip_html(comment.body)), :action => 'show', :id => comment.id %> <%= comment_url_link image_tag('go'), comment %></td>
      <td class="field"><%=h comment.ip %></td>
      <td class="field"><%=h distance_of_time_in_words_to_now(comment.created_at) %></td>
      <td class="operation"><%= link_to_edit comment %></td>
      <td class="operation"><%= link_to_destroy comment %></td>    
    </tr>  
    <% end -%>
    </table>
  </div>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
typo-3.99.0 app/views/admin/comments/list.rhtml
typo-3.99.1 app/views/admin/comments/list.rhtml
typo-3.99.2 app/views/admin/comments/list.rhtml
typo-3.99.3 app/views/admin/comments/list.rhtml
typo-4.0.0 app/views/admin/comments/list.rhtml
typo-4.0.1 app/views/admin/comments/list.rhtml
typo-4.0.2 app/views/admin/comments/list.rhtml
typo-3.99.4 app/views/admin/comments/list.rhtml
typo-4.0.3 app/views/admin/comments/list.rhtml