<%= (link_to(t('layouts.mobile_navigation.logout'), logout_path(:format => 'm')) +" | ") -%>
diff --git a/app/views/projects/project_mobile.rhtml b/app/views/projects/project_mobile.rhtml
index d79cad08..06180119 100644
--- a/app/views/projects/project_mobile.rhtml
+++ b/app/views/projects/project_mobile.rhtml
@@ -4,24 +4,34 @@
<% unless @project.description.blank? -%>
<%= sanitize(@project.description) %>
<% end -%>
-<%= render :partial => "todos/mobile_todo", :collection => @not_done, :locals => { :parent_container_type => "project" }%>
+
+<%= render :partial => "todos/mobile_todo",
+ :collection => @not_done,
+ :locals => { :parent_container_type => "project" }%>
+
<%= t('projects.deferred_actions')%>
<% if @deferred.empty? -%>
<%= t('projects.deferred_actions_empty') %>
<% else -%>
-<%= render :partial => "todos/mobile_todo", :collection => @deferred, :locals => { :parent_container_type => "project" }%>
-<% end
+
+<%= render :partial => "todos/mobile_todo",
+ :collection => @deferred,
+ :locals => { :parent_container_type => "project" }%>
+ <% end
-%>
<%= t('projects.completed_actions')%>
<% if @done.empty? -%>
<%= t('projects.completed_actions_empty') %>
<% else -%>
-<%= render :partial => "todos/mobile_todo", :collection => @done, :locals => { :parent_container_type => "project" }%>
-<% end %>
+
+<%= render :partial => "todos/mobile_todo",
+ :collection => @done,
+ :locals => { :parent_container_type => "project" }%>
+ <% end %>
<%= t('projects.notes') %>
<% if @project.notes.empty? -%>
<%= t('projects.notes_empty') %>
<% else -%><%= render :partial => "notes/mobile_notes_summary", :collection => @project.notes %>
<% end -%>
<%= t('projects.settings') %>
-<%= t('projects.state', :state => project.aasm_current_state.to_s) %>. <%= @project_default_context %>
\ No newline at end of file
+<%= t('projects.state', :state => project.aasm_current_state.to_s) %>. <%= @project_default_context %>
diff --git a/app/views/todos/_edit_mobile_form.rhtml b/app/views/todos/_edit_mobile_form.rhtml
index 63ede714..df130e65 100644
--- a/app/views/todos/_edit_mobile_form.rhtml
+++ b/app/views/todos/_edit_mobile_form.rhtml
@@ -4,37 +4,34 @@
<%= error_messages_for("todo") %>
<% this_year = current_user.time.to_date.strftime("%Y").to_i -%>
-<% if parent_container_type == 'show_mobile' -%>
-
<%= t('todos.done') %> <%= check_box_tag("done", 1, @todo && @todo.completed?, "tabindex" => 1, "onClick" => "document.mobileEdit.submit()") %>
-<% end -%>
<%= t('common.description') %>
-<%= text_field( "todo", "description", "tabindex" => 2, "maxlength" => 100, "size" => 50) %>
-
<%= t('common.notes') %>
-<%= text_area( "todo", "notes", "cols" => 40, "rows" => 3, "tabindex" => 3) %>
+<%= text_field( "todo", "description", "tabindex" => 1, "maxlength" => 100, "size" => 50) %>
+
<%= t('todos.tags') %>
+<%= text_field_tag "tag_list", @tag_list_text, :size => 50, :tabindex => 2 %>
<%= t('common.context') %>
<%= unless @mobile_from_context
- collection_select( "todo", "context_id", @contexts, "id", "name", {}, {"tabindex" => 4} )
+ collection_select( "todo", "context_id", @contexts, "id", "name", {}, {"tabindex" => 3} )
else
select_tag("todo[context_id]", options_from_collection_for_select(
@contexts, "id", "name", @mobile_from_context.id),
- {"id" => :todo_context_id, :tabindex => 4} )
+ {"id" => :todo_context_id, :tabindex => 3} )
end %>
<%= t('common.project') %>
<%= unless @mobile_from_project
collection_select( "todo", "project_id", @projects, "id", "name",
- {:include_blank => t('todos.no_project')}, {"tabindex" => 5} )
+ {:include_blank => t('todos.no_project')}, {"tabindex" => 4} )
else
# manually add blank option since :include_blank does not work
# with options_from_collection_for_select
select_tag("todo[project_id]", "
"+options_from_collection_for_select(
@projects, "id", "name", @mobile_from_project.id),
- {"id" => :todo_project_id, :tabindex => 5} )
+ {"id" => :todo_project_id, :tabindex => 4} )
end %>
-
<%= t('todos.tags') %>
-<%= text_field_tag "tag_list", @tag_list_text, :size => 50, :tabindex => 6 %>
+
<%= t('common.notes') %>
+<%= text_area( "todo", "notes", "cols" => 40, "rows" => 3, "tabindex" => 5) %>
<%= t('todos.due') %>
<%= date_select("todo", "due", {:order => [:day, :month, :year],
- :start_year => this_year, :include_blank => '--'}, :tabindex => 7) %>
+ :start_year => this_year, :include_blank => '--'}, :tabindex => 6) %>
<%= t('todos.show_from') %>
<%= date_select("todo", "show_from", {:order => [:day, :month, :year],
- :start_year => this_year, :include_blank => true}, :tabindex => 8) %>
+ :start_year => this_year, :include_blank => true}, :tabindex => 7) %>
diff --git a/app/views/todos/_mobile_actions.rhtml b/app/views/todos/_mobile_actions.rhtml
index 623c8040..2d45c0ee 100644
--- a/app/views/todos/_mobile_actions.rhtml
+++ b/app/views/todos/_mobile_actions.rhtml
@@ -2,4 +2,12 @@
<%= t('todos.no_incomplete_actions') %>
<% else -%>
<%= render :partial => "contexts/mobile_context", :collection => @contexts_to_show -%>
-<% end -%>
\ No newline at end of file
+<% end -%>
+<% unless @done.nil? -%>
+
+
<%= t('todos.completed_actions') %>
+
+<%= render :partial => "todos/mobile_todo", :collection => @done %>
+
+
+<% end %>
diff --git a/app/views/todos/_mobile_todo.rhtml b/app/views/todos/_mobile_todo.rhtml
index 42f48efb..4fb61407 100644
--- a/app/views/todos/_mobile_todo.rhtml
+++ b/app/views/todos/_mobile_todo.rhtml
@@ -1,21 +1,13 @@
-<% @todo = mobile_todo
-if mobile_todo.starred?
- bullet = "
"+image_tag("menustar_small.gif")+" "
- li_class = " class=\"star\""
-else
- bullet = "
» "
- li_class = ""
-end -%>
-
><%= bullet %><%
- if mobile_todo.completed?
--%>
-<% else
--%>
-<% end -%>
+<% @todo = mobile_todo -%>
+
+<% remote_mobile_checkbox(mobile_todo) %>
<%= date_span -%> <%= link_to mobile_todo.description, todo_path(mobile_todo, :format => 'm') -%>
<% unless mobile_todo.notes.blank? %>
<%= link_to(image_tag("mobile_notes.png", :border => "0"), mobile_todo_show_notes_path(mobile_todo, :format => 'm')) -%>
<% end %>
+<% if mobile_todo.starred? %>
+<%= image_tag("menustar_small.gif", :border => "0") -%>
+<% end %>
<% if parent_container_type == 'context' or parent_container_type == 'tag' -%>
<%= " (" +
link_to(mobile_todo.project.name, project_path(mobile_todo.project, :format => 'm')) +
diff --git a/app/views/todos/mobile_show_notes.rhtml b/app/views/todos/mobile_show_notes.rhtml
index d6da7c17..ed9ca787 100644
--- a/app/views/todos/mobile_show_notes.rhtml
+++ b/app/views/todos/mobile_show_notes.rhtml
@@ -2,4 +2,4 @@
<%= link_to @todo.description, todo_path(@todo, :format => 'm') -%>
<%= t('todos.notes') %>
<%= format_note(@todo.notes) %>
-<%= link_to t('common.back'), @return_path %>
\ No newline at end of file
+<%= link_to t('common.back'), @return_path %>
diff --git a/app/views/todos/mobile_tag.rhtml b/app/views/todos/mobile_tag.rhtml
index 4dde5250..044fdce4 100644
--- a/app/views/todos/mobile_tag.rhtml
+++ b/app/views/todos/mobile_tag.rhtml
@@ -8,18 +8,18 @@
<%= render :partial => "contexts/mobile_context", :collection => @contexts_to_show -%>
<%= t('todos.deferred_actions_with', :tag_name=> @tag_title) %>
<% unless (@deferred.nil? or @deferred.size == 0) -%>
-
+
<%= render :partial => "todos/mobile_todo", :collection => @deferred, :locals => { :parent_container_type => "tag" } -%>
-
+
<% else -%>
<%= t('todos.no_deferred_actions_with', :tag_name => @tag_title) %>
<% end -%>
<%= t('todos.completed_actions_with', :tag_name => @tag_title) %>
<% unless (@done.nil? or @done.size == 0) -%>
-
+
<%= render :partial => "todos/mobile_todo", :collection => @done, :locals => { :parent_container_type => "tag" } %>
-
+
<% else -%>
<%= t('todos.no_completed_actions_with', :tag_name => @tag_title) %>
<% end -%>
-
\ No newline at end of file
+
diff --git a/config/locales/de.yml b/config/locales/de.yml
index db86e9b2..700c1684 100644
--- a/config/locales/de.yml
+++ b/config/locales/de.yml
@@ -99,12 +99,12 @@ de:
mobile_navigation:
logout: Abmelden
feeds: Feeds
- new_action: 0-Neue Aufgabe
- starred: 4-Markiert
- projects: 3-Projekte
+ new_action: Neue Aufgabe
+ starred: Markiert
+ projects: Projekte
tickler: Notizbuch
- contexts: 2-Kontexte
- home: 1-Home
+ contexts: Kontexte
+ home: Home
navigation:
api_docs: REST API Docs
recurring_todos: Sich wiederholende To-Dos
diff --git a/config/locales/en.yml b/config/locales/en.yml
index f356bfb3..e2dd9b6e 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -7,14 +7,14 @@ en:
next_actions_rss_feed: RSS feed of next actions
toggle_notes_title: Toggle all notes
mobile_navigation:
- new_action: 0-New action
+ new_action: New
logout: Logout
feeds: Feeds
- starred: 4-Starred
- projects: 3-Projects
+ starred: Starred
+ projects: Projects
tickler: Tickler
- contexts: 2-Contexts
- home: 1-Home
+ contexts: Contexts
+ home: Home
navigation:
manage_users_title: Add or delete users
recurring_todos: Repeating todos
diff --git a/config/locales/es.yml b/config/locales/es.yml
index ce747b98..61933464 100644
--- a/config/locales/es.yml
+++ b/config/locales/es.yml
@@ -88,12 +88,12 @@ es:
mobile_navigation:
logout: "Cerrar sesi\xC3\xB3n"
feeds: Feeds
- new_action: 0-Nueva tarea
- starred: 4-Favoritos
- projects: 3-Proyectos
+ new_action: Nueva tarea
+ starred: avoritos
+ projects: Proyectos
tickler: Tickler
- contexts: 2-Contextos
- home: 1-Inicio
+ contexts: Contextos
+ home: Inicio
navigation:
api_docs: REST API Docs
recurring_todos: Tareas repetitivas
diff --git a/config/locales/fr.yml b/config/locales/fr.yml
index 46641bf5..32aa6c92 100644
--- a/config/locales/fr.yml
+++ b/config/locales/fr.yml
@@ -99,11 +99,11 @@ fr:
logout: "D\xC3\xA9connexion"
feeds: Flux
new_action: 0-Nouvelle action
- starred: "4-Marqu\xC3\xA9"
- projects: 3-Projets
+ starred: "Marqu\xC3\xA9"
+ projects: Projets
tickler: Reporteur
- contexts: 2-Contextes
- home: 1-Accueil
+ contexts: Contextes
+ home: Accueil
navigation:
api_docs: Doc REST API
recurring_todos: "T\xC3\xA2ches (todos) r\xC3\xA9p\xC3\xA9titives"
diff --git a/config/locales/nl.yml b/config/locales/nl.yml
index ce3b958a..655f8d0a 100644
--- a/config/locales/nl.yml
+++ b/config/locales/nl.yml
@@ -86,12 +86,12 @@ nl:
mobile_navigation:
logout: Afmelden
feeds: Feeds
- new_action: 0-Nieuwe actie
- starred: 4-Ster
- projects: 3-Projecten
+ new_action: Nieuwe actie
+ starred: Ster
+ projects: Projecten
tickler: Tickler
- contexts: 2-Contexten
- home: 1-Start
+ contexts: Contexten
+ home: Start
navigation:
api_docs: REST API Docs
recurring_todos: Terugkerende acties
diff --git a/config/routes.rb b/config/routes.rb
index ec0ed738..adf1fbca 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -25,7 +25,7 @@ ActionController::Routing::Routes.draw do |map|
map.resources :notes
map.resources :todos,
- :member => {:toggle_check => :put, :toggle_star => :put, :defer => :put},
+ :member => {:toggle_check => :put, :toggle_star => :put, :defer => :put, :mobile_done => :put},
:collection => {:check_deferred => :post, :filter_to_context => :post, :filter_to_project => :post, :done => :get, :all_done => :get
}
diff --git a/features/mobile_add_action.feature b/features/mobile_add_action.feature
index 80d9939d..86537d9f 100644
--- a/features/mobile_add_action.feature
+++ b/features/mobile_add_action.feature
@@ -14,7 +14,7 @@ Feature: Add new next action from mobile page
Scenario Outline: The new action form is prefilled with context and project
Given I am on the