From 8c56444f96e426a8813463fbc060fe5cca8a37ae Mon Sep 17 00:00:00 2001
From: Dan Rice
Date: Thu, 25 Oct 2012 21:15:35 -0400
Subject: [PATCH 1/3] Render task-complete checkbox for mobile
Fixes #1346
---
app/views/todos/_todo.m.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/todos/_todo.m.erb b/app/views/todos/_todo.m.erb
index ff1d58bd..2af89553 100644
--- a/app/views/todos/_todo.m.erb
+++ b/app/views/todos/_todo.m.erb
@@ -1,6 +1,6 @@
<% @todo = todo -%>
-<% remote_mobile_checkbox(todo) %>
+<%= remote_mobile_checkbox(todo) %>
<%= date_span -%> <%= link_to todo.description, todo_path(todo, :format => 'm') -%>
<% unless todo.notes.blank? %>
<%= link_to(image_tag("mobile_notes.png", :border => "0"), show_notes_todo_path(todo, :format => 'm')) -%>
From ff4d6391426e9c6186e3c943b814b8b6ab5424a0 Mon Sep 17 00:00:00 2001
From: Dan Rice
Date: Thu, 25 Oct 2012 21:24:04 -0400
Subject: [PATCH 2/3] Fix visible HTML tags in mobile flash
---
app/views/shared/_flash.m.erb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/views/shared/_flash.m.erb b/app/views/shared/_flash.m.erb
index 86f9fc2c..45acd97d 100644
--- a/app/views/shared/_flash.m.erb
+++ b/app/views/shared/_flash.m.erb
@@ -3,7 +3,7 @@
<% else -%>
<% flash.each do |key,value| -%>
- <%= value %>
+ <%= value.html_safe %>
<% end -%>
<% end -%>
-
\ No newline at end of file
+
From 53074136d3aa22f5be496b8d77a129a27d7794ed Mon Sep 17 00:00:00 2001
From: Dan Rice
Date: Thu, 25 Oct 2012 21:52:09 -0400
Subject: [PATCH 3/3] Replace hard-coded footer link to mobile site
---
app/views/shared/_footer.html.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/shared/_footer.html.erb b/app/views/shared/_footer.html.erb
index 913efc70..a594db1a 100644
--- a/app/views/shared/_footer.html.erb
+++ b/app/views/shared/_footer.html.erb
@@ -4,5 +4,5 @@
<%= t('common.email')%> |
<%= t('common.website')%> |
<%= t('common.contribute')%>
- <%= t('layouts.navigation.mobile')%>
+ <%= link_to(t('layouts.navigation.mobile'), todos_path(:format => 'm')) %>