mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-02-05 07:01:03 -05:00
17 lines
417 B
Plaintext
17 lines
417 B
Plaintext
- content_for :title, "Forums"
|
|
|
|
- if can? :create, Forum
|
|
%p
|
|
= link_to "New forum", new_forum_path, :class => 'btn btn-default'
|
|
|
|
- @forums.each do |forum|
|
|
%h2= forum
|
|
%p
|
|
= pluralize(forum.posts.count, "post")
|
|
|
|
|
=link_to "Visit forum", forum
|
|
|
|
|
=link_to "Post", new_post_path(:forum_id => forum.id)
|
|
=render :partial => "posts/summary", :locals => { :posts => forum.posts, :howmany => 4 }
|
|
|