X-Git-Url: http://git.osdn.net/view?p=pettanr%2Fpettanr.git;a=blobdiff_plain;f=app%2Fviews%2Fauthors%2Fscrolls.html.erb;fp=app%2Fviews%2Fauthors%2Fscrolls.html.erb;h=73db7bfe0468e07c3864e4fd8b2011d1762a6a8b;hp=0000000000000000000000000000000000000000;hb=305f415a00ff3da658a5ee77cf966e7f76f8230f;hpb=000b5d5ef4f3cf02793ae6a06855b7bd3cd9a78f diff --git a/app/views/authors/scrolls.html.erb b/app/views/authors/scrolls.html.erb new file mode 100644 index 00000000..73db7bfe --- /dev/null +++ b/app/views/authors/scrolls.html.erb @@ -0,0 +1,28 @@ +

<%= t '.title' -%>

+ + + <% @scrolls.each do |scroll| %> + + + + + + + <% end %> +
+ <%= link_to scroll_icon(:object => scroll, :size => 25), scroll_path(scroll) %> + <%= link_to h(truncate(scroll.title, :length => 40)), :controller => 'scroll_panels', :action => :scroll, :id => scroll.id %> + (<%= scroll.scroll_panels.size -%>) + + <%= distance_of_time_in_words_to_now scroll.updated_at %> + + <%= link_to author_icon(:object => scroll.author, :size => 25), scroll_path(scroll.author) %> + <%= link_to h(truncate(scroll.author.name, :length => 12)), author_path(scroll.author) %> + + <% if scroll.own? @author %> + <%= link_to t('link.edit'), edit_scroll_path(scroll) %> + <%= link_to t('link.destroy'), scroll_path(scroll), :method => :delete %> + <% end %> +
+<%= paginate(@paginate) %> +<%= link_to t('scrolls.new.title'), new_scroll_path %>