Files
growstuff/app/views/shared/_recent_posts.html.haml
Skud 2373bbf5c9 Broke recent plantings/posts out into partial
... which is now displayed on both the signed in and signed out
homepages.
2013-04-02 12:15:08 +11:00

18 lines
411 B
Plaintext

- if @posts
%ul
- @posts.each do |p|
%li
= link_to p.subject, p
- unless @member
posted by
= link_to p.author, p.author
- if p.forum
in
= link_to p.forum.name, p.forum
on
= p.created_at.to_s(:date)
- else
%p None yet.
- if can? :create, Post
%p= link_to "Post something", new_post_path, :class => 'btn btn-primary'