% can_edit = @can_edit && params[:status].in?(['pending', 'waiting']) %> <% priority_map = { nil => 0, 'L' => 1, 'M' => -1, 'H' => -2 } %>
You've finished all of the things you need to do. Enjoy a nice break.
<% else %><% end %> | Description | Project | Due | <%= case params[:status] when 'waiting' then 'Hidden until | ' when 'completed' then 'Completed on | ' when 'deleted' then 'Deleted on | ' end %>Tags | Priority | <% if can_edit %><% end %> |
---|---|---|---|---|---|---|---|---|---|
<% end %> | <%= task.description %> <% unless task.annotations.empty? %> <% end %> | <%= task.project %> | <%= format_date(task.due) unless task.due.nil? %> | <%= case params[:status] when 'waiting' then '' + (format_date(task.wait) unless task.wait.nil?) + ' | ' when 'completed', 'deleted' then '' + (format_date(task.end) unless task.end.nil?) + ' | ' end %><%= format_tags(task.tags) unless task.tags.nil? %> | <%= task.priority unless task.priority.nil? %> | <% if can_edit %><%= crud_links(task) %> | <% end %>