OSDN Git Service

merge v06sheet
[pettanr/pettanr.git] / app / views / stories / _play_footer.html.erb
diff --git a/app/views/stories/_play_footer.html.erb b/app/views/stories/_play_footer.html.erb
new file mode 100644 (file)
index 0000000..055a4cf
--- /dev/null
@@ -0,0 +1,20 @@
+<div>
+  <table class="no-border">
+    <tr>
+      <td>
+        <%= link_to story_icon(:object => story, :size => 25), story_path(story) %>
+        <%= link_to h(truncate(story.title, :length => 12)), play_story_path(story) %>
+      </td>
+      <% if story.own? @author -%>
+        <td>
+          <%= form_for(story) do |f| %>
+            No.
+            <%= f.number_field :t, :size => 3 %>
+            <%= f.hidden_field :comic_id %>
+            <%= f.submit t 'stories.move' %>
+          <% end %>
+        </td>
+      <% end %>
+    </tr>
+  </table>
+</div>