From b53fbc64dc101f8a423b2fd593de54fb8e6d9a41 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Sat, 26 Feb 2011 11:38:39 +0100 Subject: [PATCH] fix #1052 based on the work of Tim Madden. Thanks Tim! --- app/views/layouts/mobile.m.erb | 4 +- features/mobile_add_action.feature | 27 +++++++++++++ features/step_definitions/generic_steps.rb | 4 ++ features/step_definitions/login_steps.rb | 5 ++- features/step_definitions/project_steps.rb | 9 ++++- features/step_definitions/todo_steps.rb | 10 +++++ features/support/paths.rb | 45 +++++++++++----------- public/javascripts/application.js | 2 +- 8 files changed, 78 insertions(+), 28 deletions(-) create mode 100644 features/mobile_add_action.feature diff --git a/app/views/layouts/mobile.m.erb b/app/views/layouts/mobile.m.erb index 42c1c81e..79836850 100644 --- a/app/views/layouts/mobile.m.erb +++ b/app/views/layouts/mobile.m.erb @@ -12,7 +12,7 @@ <%= @page_title %> <% if !(@new_mobile || @edit_mobile) - if !current_user.prefs.nil? -%> + if current_user && !current_user.prefs.nil? -%>

<%= @down_count %> <%= l(Date.today, :format => current_user.prefs.title_date_format) -%>

<%= yield -%> -
<% if !current_user.prefs.nil? -%> +
<% if current_user && !current_user.prefs.nil? -%>