- howmany ||= 100 - if posts.length > 0 %table.table.table-striped %tr %th Subject %th.hidden-phone Posted by %th Most recent activity %th.hidden-phone Comments - posts.recently_active[0..howmany-1].each do |post| %tr %td = link_to truncate(strip_tags(post.subject), :length => 40, :separator => ' '), post %td.hidden-phone =link_to post.author, post.author %td = distance_of_time_in_words(post.recent_activity, Time.zone.now) ago %td.hidden-phone = post.comments.count.to_s