mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-02-05 07:01:03 -05:00
29 lines
660 B
Plaintext
29 lines
660 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
|
|
:growstuff_markdown
|
|
#{ strip_tags(@forum.description) }
|
|
|
|
- if can? :edit, @forum
|
|
=link_to "Edit", edit_forum_path(@forum), :class => 'btn btn-default btn-xs'
|
|
- if can? :delete, @forum
|
|
= link_to 'Delete', @forum, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
|
|
|
%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.
|
|
|
|
|
|
|