Fixed titles for planting pages

This commit is contained in:
Skud
2012-12-19 21:20:22 +11:00
parent 0b75494c50
commit b2d276a2e6
6 changed files with 11 additions and 5 deletions

View File

@@ -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

View File

@@ -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.

View File

@@ -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

View File

@@ -1,4 +1,4 @@
%h1 New planting
=content_for :title, "Plant something"
- if user_signed_in?
= render 'form'

View File

@@ -1,3 +1,5 @@
=content_for :title, "#{@planting.crop.system_name} in #{@planting.location}"
%p#notice= notice
%h2

View File

@@ -2,7 +2,7 @@
%p
= "Displaying #{@updates.length} updates"
- @updates.each do |update|
= render :partial => "single", :locals => { :update => update, :subject => true }