mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-18 06:17:49 -05:00
21 lines
586 B
Plaintext
21 lines
586 B
Plaintext
- howmany ||= 100
|
|
- if posts.length > 0
|
|
%table.table.table-striped
|
|
%tr
|
|
%th Subject
|
|
%th.hidden-xs Posted by
|
|
%th Most recent activity
|
|
%th.hidden-xs 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-xs
|
|
=link_to post.author, post.author
|
|
%td
|
|
= distance_of_time_in_words(post.recent_activity, Time.zone.now)
|
|
ago
|
|
%td.hidden-xs
|
|
= post.comments.count.to_s
|