OSDN Git Service

c7d8a6191b6b87d7ab325e6934bd94415107a03a
[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('SpeechBalloon'), '/home/speech_balloons' %>
28     </td>
29     <td width="200px" align="center" valign="middle">
30       <%= link_to t_m('GroundPicture'), '/home/ground_pictures' %>
31     </td>
32     <td width="200px" align="center" valign="middle">
33       <%= link_to t_m('GroundColor'), '/home/ground_colors' %>
34     </td>
35     <td width="200px" align="center" valign="middle">
36     </td>
37   </tr>
38 </table>
39 <h3><%= t('.catch') -%></h3>
40 <% if @author and @author.working? -%>
41   <%= link_to panel_icon(:object => @author.working_panel, :size => 25), panel_path(@author.working_panel) %>
42   <%= link_to @author.working_panel.caption, main_app.panel_path(@author.working_panel) %>
43 <% end -%>
44 <% if @author.artist? -%>
45   <h2><%= link_to h(@artist.name), main_app.artist_path(@artist) -%></h2>
46   <h3><%= t('.updated_picture') -%></h3>
47   <table>
48     <tr height="100px">
49       <td width="200px" align="center" valign="middle">
50         <%= link_to t_m('OriginalPicture'), main_app.original_pictures_path %>
51       </td>
52       <td width="200px" align="center" valign="middle">
53         <%= link_to t_m('ResourcePicture'), '/home/resource_pictures' %>
54       </td>
55       <td width="200px" align="center" valign="middle">
56         <%=  %>
57       </td>
58       <td width="200px" align="center" valign="middle">
59         <%=  %>
60       </td>
61     </tr>
62   </table>
63 <% else -%>
64   <h2><%= t('.artist') -%></h2>
65   <h3><%= t('.updated_picture') -%></h3>
66   <h3><%= link_to t('.not_artist'), main_app.new_artist_path -%></h2>
67 <% end -%>