OSDN Git Service

t#31900:fix story additor
[pettanr/pettanr.git] / app / views / panels / show.html.erb
index 90a1de8..6840f86 100644 (file)
@@ -1,5 +1,33 @@
-<h1>コマの表示</h1>
+<h1><%= t '.title' -%></h1>
 <p id="notice"><%= notice %></p>
 <%= render 'standard', :panel => @panel, :author => @author %>
 
-<%= link_to 'Back', panels_path %>
+<% if @panel.own? @author %>
+  <%= link_to t('link.edit'), edit_panel_path(@panel) %>
+  <%= link_to t('link.destroy'), panel_path(@panel), :method => :delete %>
+  <%= link_to t('link.catch'), catch_panel_path(@panel) %>
+<% end %>
+
+
+<% if @author %>
+  <h2><%= t('panels.show.new_comics') -%></h2>
+  <table>
+    <% @new_comics.each do |comic| %>
+      <%= render 'append_comic', :panel => @panel, :comic => comic, :author => @author %>
+    <% end %>
+  </table>
+  <h2><%= t('panels.show.fresh_comics') -%></h2>
+  <table>
+    <% @fresh_comics.each do |comic| %>
+      <%= render 'append_comic', :panel => @panel, :comic => comic, :author => @author %>
+    <% end %>
+  </table>
+  <h2><%= t('panels.show.copy') -%></h2>
+  <%= form_for(Panel.new, :html => {:jqform => 'pettanr-panel-form'}) do |f| %>
+
+    <%= hidden_field_tag "json", @panel.copy().to_json %>
+    <div>
+      <%= submit_tag t('panels.show.inspire') -%>
+    </div>
+  <% end %>
+<% end %>