<h1>Listing comics</h1>
-<table>
- <tr>
- <th>id</th>
- <th>Title</th>
- <th>width</th>
- <th>height</th>
- <th>visible</th>
- <th>editable</th>
- <th>author_id</th>
- <th>updated_at</th>
- <th></th>
- <th></th>
- <th></th>
- </tr>
-
<% @comics.each do |comic| %>
- <tr>
- <td><%= comic.id %></td>
- <td><%= h comic.title %></td>
- <td><%= comic.width %></td>
- <td><%= comic.height %></td>
- <td><%= comic.visible %></td>
- <td><%= comic.editable %></td>
- <td><%= comic.author_id%></td>
- <td><%= comic.updated_at %></td>
- <td><%= link_to 'Show', comic %></td>
- <td><%= link_to 'Play', :action => :play, :id => comic.id %></td>
- <td>
- <% if author_signed_in? -%>
- <% if comic.own? current_author -%>
- <%= link_to 'Destroy', comic, confirm: 'Are you sure?', method: :delete %>
- <% end -%>
- <% end -%>
- </td>
- </tr>
+ <div>
+ <div>
+ <%= link_to h(comic.title), :action => :play, :id => comic.id %>
+ 一般投稿:<%= comic.disp_editable %>
+ </div>
+ <div>
+ 作家:<%= h comic.author.name %>
+ 更新:<%= comic.updated_at %>
+ </div>
+ </div>
<% end %>
-</table>
-