Fix #969 by implementing a new mobile view for notes.

Did not create tests for it
This commit is contained in:
Reinier Balt 2010-08-03 22:27:54 +02:00
parent 2c6d514970
commit 110d3daf95
5 changed files with 23 additions and 2 deletions

View file

@ -13,6 +13,7 @@ end -%>
-%><span class="m_t">
<% end -%>
<%= date_span -%> <%= link_to mobile_todo.description, todo_path(mobile_todo, :format => 'm') -%>
<%= link_to(image_tag("mobile_notes.png", :border => "0"), mobile_todo_show_notes_path(mobile_todo, :format => 'm')) -%>
<% if parent_container_type == 'context' or parent_container_type == 'tag' -%>
<%= "<span class=\"prj\"> (" +
link_to(mobile_todo.project.name, project_path(mobile_todo.project, :format => 'm')) +

View file

@ -0,0 +1,5 @@
<h2>Next action description (<%= link_to "Go back", @return_path %>)</h2>
<%= link_to @todo.description, todo_path(@todo, :format => 'm') -%></h2>
<h2>Notes</h2>
<%= format_note(@todo.notes) %>
<%= link_to "Back", @return_path %>