From 25ea467c5eed19cb90cec9b875ce014342b0b4b7 Mon Sep 17 00:00:00 2001 From: Tim Madden Date: Wed, 17 Oct 2012 14:37:19 -0500 Subject: [PATCH 1/4] restoring route of /m instead of just /mobile --- config/routes.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/routes.rb b/config/routes.rb index cb133922..8f182f51 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -108,6 +108,7 @@ Tracksapp::Application.routes.draw do match 'todos/all_done/tag/:name' => "todos#all_done_tag", :as => :all_done_tag match 'auto_complete_for_predecessor' => 'todos#auto_complete_for_predecessor' match 'mobile' => 'todos#index', :format => 'm' + match 'm' => 'todos#index', :format => 'm' resources :recurring_todos do member do From c46122bb345bac787d58ba59423a85b033134f9f Mon Sep 17 00:00:00 2001 From: tim madden Date: Wed, 17 Oct 2012 14:48:31 -0500 Subject: [PATCH 2/4] Changing mobile layout so that links always show so link fill across --- app/views/layouts/mobile.m.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/mobile.m.erb b/app/views/layouts/mobile.m.erb index b9d433e0..ca46f34f 100644 --- a/app/views/layouts/mobile.m.erb +++ b/app/views/layouts/mobile.m.erb @@ -17,8 +17,8 @@

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

<% end -%> <%= render :partial => "shared/footer" -%> diff --git a/app/views/shared/_footer.html.erb b/app/views/shared/_footer.html.erb index 5738f661..913efc70 100644 --- a/app/views/shared/_footer.html.erb +++ b/app/views/shared/_footer.html.erb @@ -4,4 +4,5 @@ <%= t('common.email')%> | <%= t('common.website')%> | <%= t('common.contribute')%>

+ <%= t('layouts.navigation.mobile')%>
diff --git a/config/locales/en.yml b/config/locales/en.yml index 64a87ee7..b8d42297 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -10,6 +10,7 @@ en: new_action: New logout: Logout feeds: Feeds + full: Full Site starred: Starred projects: Projects tickler: Tickler @@ -49,6 +50,7 @@ en: preferences_title: Show my preferences admin: Admin help: "?" + mobile: Mobile Site integrations: opensearch_description: Search in Tracks applescript_next_action_prompt: "Description of next action:" From 92cfeb4188e3f6f9f1400246eb3e303cfd710974 Mon Sep 17 00:00:00 2001 From: tim madden Date: Wed, 17 Oct 2012 15:02:36 -0500 Subject: [PATCH 4/4] adding home link to mobile footer to fill it out --- app/views/layouts/mobile.m.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/layouts/mobile.m.erb b/app/views/layouts/mobile.m.erb index 65f231fb..7ee541ad 100644 --- a/app/views/layouts/mobile.m.erb +++ b/app/views/layouts/mobile.m.erb @@ -27,6 +27,7 @@
<%= render_flash -%><%= yield -%>

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