OSDN Git Service

merge v06sheet
[pettanr/pettanr.git] / app / views / scrolls / show.html.erb
diff --git a/app/views/scrolls/show.html.erb b/app/views/scrolls/show.html.erb
new file mode 100644 (file)
index 0000000..18320c4
--- /dev/null
@@ -0,0 +1,43 @@
+<% @page_title = t('.title') + ':' + @scroll.title %>
+<h1><%= t('.title') %></h1>
+<p id="notice"><%= notice %></p>
+
+<p>
+  <b><%= t_m 'Scroll.title' -%>:</b>
+  <%= link_to h(@scroll.title), play_scroll_path(@scroll) %>
+</p>
+
+<p>
+  <b><%= t_m 'Scroll.description' -%>:</b>
+  <%= h(@scroll.description) %>
+</p>
+
+<p>
+  <b><%= t_m 'Scroll.visible' -%>:</b>
+  <%= t_selected_item('scroll_visible_items', @scroll.visible) %>
+</p>
+
+<p>
+  <b><%= t_m 'Scroll.author_id' -%>:</b>
+  <%= link_to h(@scroll.author.name), author_path(@scroll.author) %>
+</p>
+
+<p>
+  <b><%= t_m 'Scroll.created_at' -%>:</b>
+  <%= l @scroll.created_at %>
+</p>
+
+<p>
+  <b><%= t_m 'Scroll.updated_at' -%>:</b>
+  <%= l @scroll.updated_at %>
+</p>
+
+<%= link_to t('link.edit'), edit_scroll_path(@scroll) %>
+<% if @scroll.own? @author -%>
+  <h3><%= t('scroll_panels.append.new_panels') -%></h3>
+  <table>
+    <% @new_panels.each do |panel| %>
+      <%= render 'scroll_panels/append_panel', :scroll => @scroll, :panel => panel, :author => @author %>
+    <% end %>
+  </table>
+<% end %>