OSDN Git Service

t#31471:add panel catch
[pettanr/pettanr.git] / app / views / home / index.html.erb
1 <h1><%= t '.title' -%></h1>
2
3 <h2><%= link_to h(@author.name), main_app.author_path(@author) -%></h2>
4 <h3><%= t('.updated_comic') -%></h3>
5 <table>
6   <tr height="100px">
7     <td width="200px" align="center" valign="middle">
8       <%= link_to t_m('Comic'), '/home/comics' %>
9     </td>
10     <td width="200px" align="center" valign="middle">
11       <%= link_to t_m('Story'), '/home/stories' %>
12     </td>
13     <td width="200px" align="center" valign="middle">
14       <%= link_to t_m('Panel'), '/home/panels' %>
15     </td>
16     <td width="200px" align="center" valign="middle">
17     </td>
18   </tr>
19 </table>
20 <h3><%= t('.used_element') -%></h3>
21 <table>
22   <tr height="100px">
23     <td width="200px" align="center" valign="middle">
24       <%= link_to t_m('PanelPicture'), '/home/panel_pictures' %>
25     </td>
26     <td width="200px" align="center" valign="middle">
27       <%= link_to t_m('GroundPicture'), '/home/ground_pictures' %>
28     </td>
29     <td width="200px" align="center" valign="middle">
30       <%= link_to t_m('GroundColor'), '/home/ground_colors' %>
31     </td>
32     <td width="200px" align="center" valign="middle">
33     </td>
34   </tr>
35 </table>
36 <h3><%= t('.catch') -%></h3>
37 <% if @author and @author.working? -%>
38   <%= link_to panel_icon(:object => @author.working_panel, :size => 25), panel_path(@author.working_panel) %>
39   <%= link_to @author.working_panel.caption, main_app.panel_path(@author.working_panel) %>
40 <% end -%>
41 <% if @author.artist? -%>
42   <h2><%= link_to h(@artist.name), main_app.artist_path(@artist) -%></h2>
43   <h3><%= t('.updated_picture') -%></h3>
44   <table>
45     <tr height="100px">
46       <td width="200px" align="center" valign="middle">
47         <%= link_to t_m('OriginalPicture'), main_app.original_pictures_path %>
48       </td>
49       <td width="200px" align="center" valign="middle">
50         <%= link_to t_m('ResourcePicture'), '/home/resource_pictures' %>
51       </td>
52       <td width="200px" align="center" valign="middle">
53         <%=  %>
54       </td>
55       <td width="200px" align="center" valign="middle">
56         <%=  %>
57       </td>
58     </tr>
59   </table>
60 <% else -%>
61   <h2><%= t('.artist') -%></h2>
62   <h3><%= t('.updated_picture') -%></h3>
63   <h3><%= link_to t('.not_artist'), main_app.new_artist_path -%></h2>
64 <% end -%>