mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-06 17:28:50 +01:00
25 lines
901 B
Text
25 lines
901 B
Text
<% @todo = mobile_todo
|
|
if mobile_todo.starred?
|
|
li_class = " class=\"star\""
|
|
else
|
|
li_class = ""
|
|
end -%>
|
|
<li id="<%= dom_id(mobile_todo) %>" <%= li_class %>><%
|
|
if mobile_todo.completed?
|
|
-%><span class="m_t_d">
|
|
<% else
|
|
-%><span class="m_t">
|
|
<% end -%>
|
|
<%= date_span -%> <%= link_to mobile_todo.description, formatted_todo_path(mobile_todo, :m) -%>
|
|
<% if parent_container_type == 'context' or parent_container_type == 'tag' -%>
|
|
<%= "<span class=prj> (" +
|
|
link_to(mobile_todo.project.name, formatted_project_path(mobile_todo.project, :m)) +
|
|
")</span>" unless mobile_todo.project.nil? -%>
|
|
<% end
|
|
if parent_container_type == 'project' or parent_container_type == 'tag' -%>
|
|
<%= "<span class=ctx> (" +
|
|
link_to(mobile_todo.context.name, formatted_context_path(mobile_todo.context, :m)) +
|
|
")</span>" -%>
|
|
<% end -%>
|
|
<%= tag_list_mobile -%>
|
|
</span></li>
|