<%= link_to scroll_icon, scroll_path(scroll) %> <%= link_to h(scroll.title), play_scroll_path(scroll) %>

<% if scroll.own? author -%> <%= form_for(scroll) do |f| %>
<%= f.label :title %>
<%= f.text_field :title %>
<%= f.label :visible %>
<%= f.collection_select :visible, t_select_items(MagicNumber['scroll_visible_items']), :last, :first, :html => {:selected => @scroll.visible} %>
<%= f.submit %>
<% end %> <% else %>

<%= t_m 'Scroll.visible' -%>: <%= t_selected_item('scroll_visible_items', @scroll.visible) %>

<% end %>

<%= t_m 'Scroll.author_id' -%>: <%= link_to h(@scroll.author.name), author_path(@scroll.author) %>

<%= t_m 'Scroll.created_at' -%>: <%= l @scroll.created_at %>

<%= t_m 'Scroll.updated_at' -%>: <%= l @scroll.updated_at %>