mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-25 18:22:45 -04:00
39 lines
1.4 KiB
Plaintext
39 lines
1.4 KiB
Plaintext
= content_for :title, @post.subject
|
|
|
|
- unless current_member
|
|
.alert.alert-info
|
|
= link_to @post.author.login_name, member_path(@post.author)
|
|
is using
|
|
= link_to ENV["GROWSTUFF_SITE_NAME"], root_path
|
|
to discuss #{ @post.subject } with a community of food gardeners worldwide.
|
|
We have advice on growing
|
|
= succeed "," do
|
|
= link_to 'hundreds of different crops', crops_url
|
|
and a community from all around the world.
|
|
|
|
= render :partial => "shared/signin_signup",
|
|
:locals => { :to => "or to start using #{ENV["GROWSTUFF_SITE_NAME"]} to track what you're planting and harvesting" }
|
|
|
|
= render :partial => "single", :locals => { :post => @post, :subject => false, :hide_comments => true }
|
|
|
|
- unless @post.crops.empty?
|
|
%h3 Crops mentioned in this post
|
|
- @post.crops.each do |c|
|
|
.col-md-2
|
|
= render :partial => 'crops/thumbnail', :locals => { :crop => c }
|
|
|
|
.col-md-11
|
|
- if can? :edit, @post or can? :destroy, @post
|
|
.post-actions
|
|
- if can? :edit, @post
|
|
= link_to 'Edit Post', edit_post_path(@post), :class => 'btn btn-default btn-xs'
|
|
- if can? :destroy, @post
|
|
= link_to 'Delete Post', @post, method: :delete, |
|
|
data: { confirm: 'Are you sure?' }, :class => 'btn btn-default btn-xs'
|
|
|
|
= render :partial => "comments", :locals => { :post => @post }
|
|
|
|
- if can? :create, Comment
|
|
.post-actions
|
|
=link_to 'Comment', new_comment_path(:post_id => @post.id), :class => 'btn btn-primary'
|