Sha256: 77e90f7c4513c99241458539e3fb629503769548062564d84a67f5ab65da34c1

Contents?: true

Size: 609 Bytes

Versions: 11

Compression:

Stored size: 609 Bytes

Contents

<h1>Comments</h1>

<table>
  <thead>
    <tr>
      <th>Content</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @comments.each do |comment| %>
      <tr>
        <td><%= comment.content %></td>
        <td><%= comment.is_approved ? '可见' : '审核中...' %></td>
        <td><%= link_to 'Show', comment %></td>
        <td><%= link_to 'Edit', edit_comment_path(comment) %></td>
        <td><%= link_to 'Destroy', comment, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Comment', new_comment_path %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
censor_bear-0.1.29 test/dummy/app/views/comments/index.html.erb
censor_bear-0.1.28 test/dummy/app/views/comments/index.html.erb
censor_bear-0.1.27 test/dummy/app/views/comments/index.html.erb
censor_bear-0.1.26 test/dummy/app/views/comments/index.html.erb
censor_bear-0.1.25 test/dummy/app/views/comments/index.html.erb
censor_bear-0.1.24 test/dummy/app/views/comments/index.html.erb
censor_bear-0.1.23 test/dummy/app/views/comments/index.html.erb
censor_bear-0.1.22 test/dummy/app/views/comments/index.html.erb
censor_bear-0.1.21 test/dummy/app/views/comments/index.html.erb
censor_bear-0.1.20 test/dummy/app/views/comments/index.html.erb
censor_bear-0.1.19 test/dummy/app/views/comments/index.html.erb