2008-04-19 19:15:07 +00:00
|
|
|
<% @todo = mobile_todo
|
|
|
|
|
if mobile_todo.starred?
|
2008-12-03 11:50:20 +01:00
|
|
|
bullet = "<span class=\"star\">"+image_tag("menustar_small.gif")+"</span>"
|
|
|
|
|
li_class = " class=\"star\""
|
2008-04-19 19:15:07 +00:00
|
|
|
else
|
2008-12-03 11:50:20 +01:00
|
|
|
bullet = "<span class=\"r\">» </span>"
|
|
|
|
|
li_class = ""
|
2008-04-19 19:15:07 +00:00
|
|
|
end -%>
|
2008-12-03 11:50:20 +01:00
|
|
|
<li id="<%= dom_id(mobile_todo) %>" <%= li_class %>><%= bullet %><%
|
2008-05-28 09:29:46 +00:00
|
|
|
if mobile_todo.completed?
|
|
|
|
|
-%><span class="m_t_d">
|
|
|
|
|
<% else
|
|
|
|
|
-%><span class="m_t">
|
|
|
|
|
<% end -%>
|
2009-12-07 19:10:55 -05:00
|
|
|
<%= date_span -%> <%= link_to mobile_todo.description, todo_path(mobile_todo, :format => 'm') -%>
|
2010-08-05 22:52:34 +08:00
|
|
|
<% if mobile_todo.notes? %>
|
2010-08-03 22:27:54 +02:00
|
|
|
<%= link_to(image_tag("mobile_notes.png", :border => "0"), mobile_todo_show_notes_path(mobile_todo, :format => 'm')) -%>
|
2010-08-05 22:52:34 +08:00
|
|
|
<% end %>
|
2008-05-28 09:29:46 +00:00
|
|
|
<% if parent_container_type == 'context' or parent_container_type == 'tag' -%>
|
2008-12-22 16:41:43 +01:00
|
|
|
<%= "<span class=\"prj\"> (" +
|
2009-12-07 19:10:55 -05:00
|
|
|
link_to(mobile_todo.project.name, project_path(mobile_todo.project, :format => 'm')) +
|
2008-05-28 09:29:46 +00:00
|
|
|
")</span>" unless mobile_todo.project.nil? -%>
|
|
|
|
|
<% end
|
2008-04-19 19:15:07 +00:00
|
|
|
if parent_container_type == 'project' or parent_container_type == 'tag' -%>
|
2008-12-22 16:41:43 +01:00
|
|
|
<%= "<span class=\"ctx\"> (" +
|
2009-12-07 19:10:55 -05:00
|
|
|
link_to(mobile_todo.context.name, context_path(mobile_todo.context, :format => 'm')) +
|
2008-05-28 09:29:46 +00:00
|
|
|
")</span>" -%>
|
|
|
|
|
<% end -%>
|
|
|
|
|
<%= tag_list_mobile -%>
|
2008-12-03 12:03:23 +01:00
|
|
|
</span></li>
|