From 87b383f209d04da0af3e21500b2f2ecc58fb0fc1 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Thu, 31 Jul 2008 21:02:37 +0200 Subject: [PATCH] restored keypad navigation in mobile view. Parts of [832] were lost in the rails2 merge last april --- app/views/layouts/mobile.m.erb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/app/views/layouts/mobile.m.erb b/app/views/layouts/mobile.m.erb index 1be4d590..c775332c 100644 --- a/app/views/layouts/mobile.m.erb +++ b/app/views/layouts/mobile.m.erb @@ -10,21 +10,21 @@ if !@prefs.nil? -%>

<%= @down_count %> <%= user_time.strftime(@prefs.title_date_format) -%>

-<%= (link_to("Add new action", formatted_new_todo_path(:m))+" | ") unless @new_mobile -%> -<%= (link_to("Home", formatted_todos_path(:m))+" | ") unless @home -%> -<%= (link_to("Contexts", formatted_contexts_path(:m))+" | ") -%> -<%= (link_to("Projects", formatted_projects_path(:m))+" | ") -%> -<%= (link_to("Starred", {:action => "tag", :controller => "todos", :id => "starred.m"})) -%> +<%= (link_to("0-Add new action", formatted_new_todo_path(:m))+" | ") unless @new_mobile -%> +<%= (link_to("1-Home", formatted_todos_path(:m))+" | ") unless @home -%> +<%= (link_to("2-Contexts", formatted_contexts_path(:m))+" | ") -%> +<%= (link_to("3-Projects", formatted_projects_path(:m))+" | ") -%> +<%= (link_to("4-Starred", {:action => "tag", :controller => "todos", :id => "starred.m"})) -%> <% end end -%><%= render_flash -%>
<%= yield -%>
<% if !@prefs.nil? -%> <%= (link_to("Logout", formatted_logout_path(:format => 'm')) +" | ") -%> -<%= (link_to("Add new action", formatted_new_todo_path(:m))+" | ") unless @new_mobile -%> -<%= (link_to("Home", formatted_todos_path(:m))+" | ") unless @home -%> -<%= (link_to("Contexts", formatted_contexts_path(:m))+" | ") -%> -<%= (link_to("Projects", formatted_projects_path(:m))+" | ") -%> -<%= (link_to("Starred", {:action => "tag", :controller => "todos", :id => "starred.m"})+" | ") -%> +<%= (link_to("0-Add new action", formatted_new_todo_path(:m), {:accesskey => "0"})+" | ") unless @new_mobile -%> +<%= (link_to("1-Home", formatted_todos_path(:m), {:accesskey => "1"})+" | ") unless @home -%> +<%= (link_to("2-Contexts", formatted_contexts_path(:m), {:accesskey => "2"})+" | ") -%> +<%= (link_to("3-Projects", formatted_projects_path(:m), {:accesskey => "3"})+" | ") -%> +<%= (link_to("4-Starred", {:action => "tag", :controller => "todos", :id => "starred.m"}, {:accesskey => "4"})+" | ") -%> <%= (link_to("Tickler", {:action => "index", :controller => "tickler.m"})+" | ") -%> <%= (link_to("Feeds", {:action => "index", :controller => "feeds.m"})) -%> <% end -%>