OSDN Git Service

fix form
[pettanr/pettanr.git] / app / views / home / index.html.erb
1 <h1><%= t '.title' -%></h1>
2 <% if @operators.author -%>
3 <h2><%= link_to h(@operators.author.name), main_app.author_path(@operators.author) -%></h2>
4 <h3><%= t('.updated_scroll') -%></h3>
5   <table>
6     <tr height="100px">
7       <td width="200px" align="center" valign="middle">
8         <%= link_to t_m('Scroll'), '/home/scrolls' %>
9         <%= link_to t('*'), new_scroll_path %>
10       </td>
11       <td width="200px" align="center" valign="middle">
12         <%= link_to t_m('ScrollPanel'), '/home/scroll_panels' %>
13         <%= link_to t('*'), new_scroll_panel_path %>
14       </td>
15       <td width="200px" align="center" valign="middle">
16         <%= link_to t_m('Comic'), '/home/comics' %>
17         <%= link_to t('*'), new_comic_path %>
18       </td>
19       <td width="200px" align="center" valign="middle">
20         <%= link_to t_m('Story'), '/home/stories' %>
21         <%= link_to t('*'), new_story_path %>
22       </td>
23     </tr>
24     <tr height="100px">
25       <td width="200px" align="center" valign="middle">
26         <%= link_to t_m('StorySheet'), '/home/story_sheets' %>
27         <%= link_to t('*'), new_story_sheet_path %>
28       </td>
29       <td width="200px" align="center" valign="middle">
30         <%= link_to t_m('Sheet'), '/home/sheets' %>
31         <%= link_to t('*'), new_sheet_path %>
32       </td>
33       <td width="200px" align="center" valign="middle">
34         <%= link_to t_m('SheetPanel'), '/home/sheet_panels' %>
35         <%= link_to t('*'), new_sheet_panel_path %>
36       </td>
37       <td width="200px" align="center" valign="middle">
38         <%= link_to t_m('Panel'), '/home/panels' %>
39         <%= link_to t('*'), new_panel_path %>
40       </td>
41     </tr>
42   </table>
43   <h3><%= t('.used_element') -%></h3>
44   <table>
45     <tr height="100px">
46       <td width="200px" align="center" valign="middle">
47         <%= link_to t_m('PanelPicture'), '/home/panel_pictures' %>
48       </td>
49       <td width="200px" align="center" valign="middle">
50         <%= link_to t_m('SpeechBalloon'), '/home/speech_balloons' %>
51       </td>
52       <td width="200px" align="center" valign="middle">
53         <%= link_to t_m('GroundPicture'), '/home/ground_pictures' %>
54       </td>
55       <td width="200px" align="center" valign="middle">
56         <%= link_to t_m('GroundColor'), '/home/ground_colors' %>
57         <%= link_to t('*'), new_ground_color_path %>
58       </td>
59       <td width="200px" align="center" valign="middle">
60       </td>
61     </tr>
62   </table>
63 <% else -%>
64   <h2><%= t('.author') -%></h2>
65   <h3><%= link_to t('.not_author'), main_app.new_author_path -%></h2>
66 <% end -%>
67 <% if @operators.artist -%>
68   <h2><%= link_to h(@operators.artist.name), main_app.artist_path(@operators.artist) -%></h2>
69   <h3><%= t('.updated_picture') -%></h3>
70   <table>
71     <tr height="100px">
72       <td width="200px" align="center" valign="middle">
73         <%= link_to t_m('OriginalPicture'), main_app.original_pictures_path %>
74         <%= link_to t('*'), new_original_picture_path %>
75       </td>
76       <td width="200px" align="center" valign="middle">
77         <%= link_to t_m('ResourcePicture'), '/home/resource_pictures' %>
78       </td>
79       <td width="200px" align="center" valign="middle">
80         <%=  %>
81       </td>
82       <td width="200px" align="center" valign="middle">
83         <%=  %>
84       </td>
85     </tr>
86   </table>
87 <% else -%>
88   <h2><%= t('.artist') -%></h2>
89   <h3><%= link_to t('.not_artist'), main_app.new_artist_path -%></h2>
90 <% end -%>