mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-19 06:47:51 -05:00
27 lines
523 B
Plaintext
27 lines
523 B
Plaintext
- content_for :title, @forum.name
|
|
|
|
%p#notice= notice
|
|
|
|
%p.forum-meta
|
|
This forum is run by
|
|
= link_to @forum.owner, @forum.owner
|
|
|
|
%div
|
|
:markdown
|
|
#{ strip_tags(@forum.description) }
|
|
|
|
- if can? :edit, @forum
|
|
=link_to "Edit", edit_forum_path(@forum), :class => 'btn btn-mini'
|
|
|
|
%h2
|
|
Posts
|
|
=link_to "Post something", new_post_path(:forum_id => @forum.id), :class => 'btn btn-primary'
|
|
|
|
- if @forum.posts.count > 0
|
|
=render :partial => "posts/summary", :locals => { :posts => @forum.posts }
|
|
- else
|
|
No posts yet.
|
|
|
|
|
|
|