Skip to content

Commit

Permalink
moved update layout to layouts folder, finished organizing views
Browse files Browse the repository at this point in the history
  • Loading branch information
dominic committed May 21, 2011
1 parent bc957d4 commit 0508074
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions controllers/updates_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Rstatus
set_pagination_buttons(@updates)
haml :"updates/index"
else
haml :index, :layout => false
haml :"static/home", :layout => false
end
end

Expand Down Expand Up @@ -101,7 +101,7 @@ class Rstatus
get '/updates/:id' do
@update = Update.first :id => params[:id]
@referral = @update.referral
haml :"updates/show", :layout => :'updates/layout'
haml :"updates/show", :layout => :'layout/update'
end

# Hopefully people don't delete a whole bunch of their updates, but if they
Expand Down
8 changes: 4 additions & 4 deletions rstatus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ class Rstatus
if logged_in?
call! env.merge("PATH_INFO" => '/timeline')
else
haml :index, :layout => false
haml :"static/home", :layout => false
end
end

get '/home' do
cache_control :public, :must_revalidate, :max_age => 60
haml :index, :layout => false
haml :"static/home", :layout => false
end

post '/signup' do
Expand Down Expand Up @@ -118,11 +118,11 @@ class Rstatus
end

not_found do
haml :'error', :layout => false, :locals => {:code => 404, :message => "We couldn't find the page you're looking for"}
haml :"static/error", :layout => false, :locals => {:code => 404, :message => "We couldn't find the page you're looking for"}
end

error do
haml :'error', :layout => false, :locals => {:code => 500, :message => "Something went wrong"}
haml :"static/error", :layout => false, :locals => {:code => 500, :message => "Something went wrong"}
end

end
4 changes: 2 additions & 2 deletions tasks/rocco.rake
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ begin
CLEAN.include "docs/#{css}"
end

file 'docs/index.html' => 'views/doc_index.haml' do |f|
system("haml -rrdiscount views/doc_index.haml docs/index.html")
file 'docs/index.html' => 'views/static/doc_index.haml' do |f|
system("haml -rrdiscount views/static/doc_index.haml docs/index.html")
end

task :docs => 'docs/index.html'
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0508074

Please sign in to comment.