OSDN Git Service

t#30102#30122:update i18n index
authoryasushiito <yas@pen-chan.jp>
Wed, 21 Nov 2012 23:28:15 +0000 (08:28 +0900)
committeryasushiito <yas@pen-chan.jp>
Wed, 21 Nov 2012 23:28:15 +0000 (08:28 +0900)
app/views/ground_colors/_list_item.html.erb [new file with mode: 0644]
app/views/stories/index.html.erb [new file with mode: 0644]

diff --git a/app/views/ground_colors/_list_item.html.erb b/app/views/ground_colors/_list_item.html.erb
new file mode 100644 (file)
index 0000000..337ea40
--- /dev/null
@@ -0,0 +1,14 @@
+<tr>
+  <td style="color: #<%= format("%06x", ground_color.color.code ^ 0xffffff) -%>; background-color: #<%= format("%06x", ground_color.color.code) -%>;">
+    <%= h ground_color.color.name %>
+  </td>
+  <td>
+    <%= link_to ground_color.panel_id, panel_path(ground_color.panel) %>
+  </td>
+  <td>
+    <%= ground_color.z %>
+  </td>
+  <td>
+    <%= distance_of_time_in_words_to_now ground_color.updated_at %>
+  </td>
+</tr>
diff --git a/app/views/stories/index.html.erb b/app/views/stories/index.html.erb
new file mode 100644 (file)
index 0000000..da8cdb8
--- /dev/null
@@ -0,0 +1,4 @@
+<h1><%= t '.title' -%></h1>
+<% @stories.each do |story| %>
+  <%= render 'panels/standard', :panel => story.panel, :author => @author %>
+<% end %>