OSDN Git Service

merge v06sheet
[pettanr/pettanr.git] / app / views / story_sheets / _play_footer.html.erb
diff --git a/app/views/story_sheets/_play_footer.html.erb b/app/views/story_sheets/_play_footer.html.erb
new file mode 100644 (file)
index 0000000..482cbc1
--- /dev/null
@@ -0,0 +1,9 @@
+<div>
+  <% if sheet -%>
+    <%= link_to sheet_icon(:object => sheet, :size => 25), sheet_path(sheet) %>
+    <%= link_to h(truncate(sheet.caption, :length => 40)), play_sheet_path(sheet) %>
+
+    <%= link_to author_icon(:object => sheet.author, :size => 25), author_path(sheet.author) %>
+    <%= link_to h(truncate(sheet.author.name, :length => 12)), author_path(sheet.author) %>
+  <% end %>
+</div>