mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-27 11:14:31 -04:00
Fixed titles for planting pages
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
= content_for :title, "Recent Growstuff member updates"
|
||||
|
||||
= form_for(@planting, :html => {:class => "form-horizontal"}) do |f|
|
||||
- if @planting.errors.any?
|
||||
#error_explanation
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
%h1 Editing planting
|
||||
= content_for :title, "Editing planting"
|
||||
|
||||
- if user_signed_in? && current_user == @planting.garden.user
|
||||
- if user_signed_in? && current_user == @planting.owner
|
||||
= render 'form'
|
||||
- elsif user_signed_in?
|
||||
.alert You don't have permission to edit this planting.
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
%h1 Recent plantings
|
||||
=content_for :title, "What's been planted recently?"
|
||||
|
||||
%p Here are the latest things planted by Growstuff members.
|
||||
|
||||
- @recent_plantings.each do |p|
|
||||
.well
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
%h1 New planting
|
||||
=content_for :title, "Plant something"
|
||||
|
||||
- if user_signed_in?
|
||||
= render 'form'
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
=content_for :title, "#{@planting.crop.system_name} in #{@planting.location}"
|
||||
|
||||
%p#notice= notice
|
||||
|
||||
%h2
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
%p
|
||||
= "Displaying #{@updates.length} updates"
|
||||
|
||||
|
||||
- @updates.each do |update|
|
||||
= render :partial => "single", :locals => { :update => update, :subject => true }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user