OSDN Git Service

fix js folder
[pettanr/pettanr.git] / app / views / home / index.html.erb
index 85659b5..e50c6e8 100644 (file)
@@ -1,16 +1,90 @@
-<h1><%= h(@author.name) -%>(<%= h(@user.email) -%>)</h1>
-
-<div>
-<p>絵師活動</p>
-<% if @author.artist? -%>
-  <%= link_to h(@author.artist.name), @author.artist %>です
+<h1><%= t '.title' -%></h1>
+<% if @operators.author -%>
+<h2><%= link_to h(@operators.author.name), main_app.author_path(@operators.author) -%></h2>
+<h3><%= t('.updated_scroll') -%></h3>
+  <table>
+    <tr height="100px">
+      <td width="200px" align="center" valign="middle">
+        <%= link_to t_m('Scroll'), '/home/scrolls' %>
+        <%= link_to t('*'), new_scroll_path %>
+      </td>
+      <td width="200px" align="center" valign="middle">
+        <%= link_to t_m('ScrollPanel'), '/home/scroll_panels' %>
+        <%= link_to t('*'), new_scroll_panel_path %>
+      </td>
+      <td width="200px" align="center" valign="middle">
+        <%= link_to t_m('Comic'), '/home/comics' %>
+        <%= link_to t('*'), new_comic_path %>
+      </td>
+      <td width="200px" align="center" valign="middle">
+        <%= link_to t_m('Story'), '/home/stories' %>
+        <%= link_to t('*'), new_story_path %>
+      </td>
+    </tr>
+    <tr height="100px">
+      <td width="200px" align="center" valign="middle">
+        <%= link_to t_m('StorySheet'), '/home/story_sheets' %>
+        <%= link_to t('*'), new_story_sheet_path %>
+      </td>
+      <td width="200px" align="center" valign="middle">
+        <%= link_to t_m('Sheet'), '/home/sheets' %>
+        <%= link_to t('*'), new_sheet_path %>
+      </td>
+      <td width="200px" align="center" valign="middle">
+        <%= link_to t_m('SheetPanel'), '/home/sheet_panels' %>
+        <%= link_to t('*'), new_sheet_panel_path %>
+      </td>
+      <td width="200px" align="center" valign="middle">
+        <%= link_to t_m('Panel'), '/home/panels' %>
+        <%= link_to t('*'), new_panel_path %>
+      </td>
+    </tr>
+  </table>
+  <h3><%= t('.used_element') -%></h3>
+  <table>
+    <tr height="100px">
+      <td width="200px" align="center" valign="middle">
+        <%= link_to t_m('PanelPicture'), '/home/panel_pictures' %>
+      </td>
+      <td width="200px" align="center" valign="middle">
+        <%= link_to t_m('SpeechBalloon'), '/home/speech_balloons' %>
+      </td>
+      <td width="200px" align="center" valign="middle">
+        <%= link_to t_m('GroundPicture'), '/home/ground_pictures' %>
+      </td>
+      <td width="200px" align="center" valign="middle">
+        <%= link_to t_m('GroundColor'), '/home/ground_colors' %>
+        <%= link_to t('*'), new_ground_color_path %>
+      </td>
+      <td width="200px" align="center" valign="middle">
+      </td>
+    </tr>
+  </table>
 <% else -%>
-  <p>まだ絵師登録していません。</p>
-  <p>登録する</p>
-    <%= render 'original_pictures/artist_register' %>
+  <h2><%= t('.author') -%></h2>
+  <h3><%= link_to t('.not_author'), main_app.new_author_path -%></h2>
+<% end -%>
+<% if @operators.artist -%>
+  <h2><%= link_to h(@operators.artist.name), main_app.artist_path(@operators.artist) -%></h2>
+  <h3><%= t('.updated_picture') -%></h3>
+  <table>
+    <tr height="100px">
+      <td width="200px" align="center" valign="middle">
+        <%= link_to t_m('OriginalPicture'), main_app.original_pictures_path %>
+        <%= link_to t('*'), new_original_picture_path %>
+      </td>
+      <td width="200px" align="center" valign="middle">
+        <%= link_to t_m('ResourcePicture'), '/home/resource_pictures' %>
+      </td>
+      <td width="200px" align="center" valign="middle">
+        <%=  %>
+      </td>
+      <td width="200px" align="center" valign="middle">
+        <%=  %>
+      </td>
+    </tr>
+  </table>
+<% else -%>
+  <h2><%= t('.artist') -%></h2>
+  <h3><%= link_to t('.not_artist'), main_app.new_artist_path -%></h2>
 <% end -%>
-</div>
-<%= link_to 'my comics', :action => :comic %>
-<%= link_to 'my panels', :action => :panel %>
-<%= link_to 'my pictures', :action => :picture %>
-<%= link_to 'my panel pictures', :action => :panel_picture %>