mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-02 19:10:16 +01:00
Fix #969 by implementing a new mobile view for notes.
Did not create tests for it
This commit is contained in:
parent
2c6d514970
commit
110d3daf95
5 changed files with 23 additions and 2 deletions
|
|
@ -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')) +
|
||||
|
|
|
|||
5
app/views/todos/mobile_show_notes.rhtml
Normal file
5
app/views/todos/mobile_show_notes.rhtml
Normal 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 %>
|
||||
Loading…
Add table
Add a link
Reference in a new issue