From c872dd9527ae426a197db48cbfe599519e3e2d6e Mon Sep 17 00:00:00 2001 From: Coleman Date: Fri, 17 Oct 2008 04:03:31 -0500 Subject: [PATCH] show email lookup link for not logged in users --- app/helpers/global_helpers.rb | 1 + app/views/home/index.html.haml | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/app/helpers/global_helpers.rb b/app/helpers/global_helpers.rb index 4b3f143..4634a6e 100644 --- a/app/helpers/global_helpers.rb +++ b/app/helpers/global_helpers.rb @@ -33,6 +33,7 @@ module Merb else @menu_items << { :img => '/images/system-users.png', :name => 'Sign up', :title => 'Sign up for an account', :href => url(:new_user) } @menu_items << { :img => '/images/system-lock-screen.png', :name => 'Log in', :title => 'Log in with your account', :href => url(:new_session) } + @menu_items << { :img => '/images/mail-message-new.png', :name => 'Lookup email', :title => 'Look up photos by email address', :href => url(:controller => :photos, :action => :by_email) } end end @menu_items diff --git a/app/views/home/index.html.haml b/app/views/home/index.html.haml index 0845683..9d9c96b 100644 --- a/app/views/home/index.html.haml +++ b/app/views/home/index.html.haml @@ -33,7 +33,3 @@ %a{ :href => menu_item[:href], :title => menu_item[:name] } %img{ :src => menu_item[:img] } = menu_item[:title] - %li - %a{ :href => url(:controller => :photos, :action => :by_email) } - %img{ :src => '/images/mail-message-new.png' } - Lookup photos of you by email address