mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-03 06:57:50 -05:00
17 lines
403 B
Plaintext
17 lines
403 B
Plaintext
- content_for :title, t('.title')
|
|
|
|
- if can? :create, Forum
|
|
%p
|
|
= link_to "New forum", new_forum_path, class: 'btn btn-default'
|
|
|
|
- @forums.each do |forum|
|
|
%h2= forum
|
|
%p
|
|
= localize_plural(forum.posts, 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 }
|
|
|