2012-05-12 13:37:36 +02:00
|
|
|
<% @todo = todo -%>
|
|
|
|
|
<li id="<%= dom_id(todo) %>" >
|
2012-10-25 21:15:35 -04:00
|
|
|
<%= remote_mobile_checkbox(todo) %>
|
2012-05-12 13:37:36 +02:00
|
|
|
<%= date_span -%> <%= link_to todo.description, todo_path(todo, :format => 'm') -%>
|
2013-09-13 15:40:09 +03:00
|
|
|
<% if todo.notes.present? %>
|
2012-05-12 13:37:36 +02:00
|
|
|
<%= link_to(image_tag("mobile_notes.png", :border => "0"), show_notes_todo_path(todo, :format => 'm')) -%>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if todo.starred? %>
|
|
|
|
|
<%= image_tag("menustar_small.gif", :border => "0") -%>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if parent_container_type == 'context' or parent_container_type == 'tag' -%>
|
|
|
|
|
<%=
|
|
|
|
|
if todo.project.nil?
|
|
|
|
|
""
|
|
|
|
|
else
|
|
|
|
|
link = link_to(todo.project.name, project_path(todo.project, :format => :m))
|
|
|
|
|
content_tag(:span, " (#{link})".html_safe, :class=>"prj")
|
|
|
|
|
end
|
|
|
|
|
-%>
|
|
|
|
|
<% end
|
|
|
|
|
if parent_container_type == 'project' or parent_container_type == 'tag' -%>
|
|
|
|
|
<%=
|
|
|
|
|
link = link_to(todo.context.name, context_path(todo.context, :format => 'm'))
|
|
|
|
|
content_tag(:span, " (#{link})".html_safe, :class=>"ctx")
|
|
|
|
|
-%>
|
|
|
|
|
<% end -%>
|
|
|
|
|
<%= tag_list_mobile -%>
|
|
|
|
|
</span></li>
|