Skip to content

Commit

Permalink
Delete button works on for trips but should look a bit better. User's…
Browse files Browse the repository at this point in the history
… page shows up on /accounts.
  • Loading branch information
Jen-Mei Wu committed Apr 22, 2011
1 parent f4c8989 commit e1cffc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/home_controller.rb
@@ -1,7 +1,7 @@
class HomeController < ApplicationController
def index
if current_user
redirect_to current_user
redirect_to account_path
else
redirect_to new_user_session_path
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/trips/_trip.html.haml
Expand Up @@ -6,7 +6,7 @@
- if @user == current_user
%td.actions
= link_to image_tag('icons/cog_edit.png', :alt => 'Edit this trip'), edit_account_trip_path(trip), :title => 'Edit this trip'
= link_to image_tag('icons/cog_delete.png', :alt => 'Delete this trip'), account_trip_path(trip), :confirm => 'Are you sure?', :method => :delete, :title => "Delete this trip"
= button_to "delete", account_trip_path(trip), :confirm => 'Are you sure?', :method => :delete, :title => "Delete this trip", :class => "delete_trip_button"
%a{:href => "#", :class => 'copy-trip-to-form', :title => "Copy this trip"}= image_tag('icons/page_copy.png', :alt => 'Copy this trip')
- if trip.mode.green
%a{:target => '_blank', :href => "http://twitter.com/home?status=#{trip.to_tweet}", :class => 'tweet-trip', :title => "Tweet this trip!"}= image_tag('twitter_25.png', :alt => 'Tweet this trip')
Expand Down

0 comments on commit e1cffc1

Please sign in to comment.