OSDN Git Service

iroiro
[pettanr/pettanr.git] / app / views / comics / top.html.erb
1 <%= link_to "comics", comics_path %>
2 <h1>コミック</h1>
3 <%= link_to '新着', comics_path %>
4 <table>
5   <tr>
6     <th>Title</th>
7     <th>editable</th>
8     <th>author_id</th>
9     <th>updated_at</th>
10     <th></th>
11   </tr>
12
13 <% @new_comics.each do |comic| %>
14   <tr>
15     <td><%= link_to h(comic.title), :action => :play, :id => comic.id %></td>
16     <td><%= comic.editable %></td>
17     <td><%= comic.author_id%></td>
18     <td><%= comic.updated_at %></td>
19     <td>
20       <% if author_signed_in? -%>
21         <% if comic.own? current_author -%>
22           <%= link_to 'Destroy', comic, confirm: 'Are you sure?', method: :delete %>
23         <% end -%>
24       <% end -%>
25     </td>
26   </tr>
27 <% end %>
28 </table>
29 <%= link_to '人気', comics_path %>
30 <h3>コマ</h3>
31 <%= link_to '新着', panels_path %>
32 <%= link_to '人気', panels_path %>
33 <h1>素材</h1>
34 <% @new_pictures.each do |picture| %>
35   <div>
36     <img src="<%= picture.resource_picture.url('thumbnail') -%>">
37     画:<%= h picture.artist.name %>
38   </div>
39 <% end %>
40 <%= link_to "もっと見る", original_pictures_path %>
41 <h3>ライセンス</h3>
42 <%= link_to "lisences", lisences_path %>