Changed the completed box on the home, context and project pages so that it presents the same format as that on the 'done' page: the actions context and project (if it has one) is presented in brackets after the description.

Fixes #254.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@223 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
bsag 2006-04-15 15:08:44 +00:00
parent 5a331c0a66
commit 7a9a19a563

View file

@ -11,11 +11,16 @@
<% else -%>
<%= due_date( item.due ) -%>
<% end -%>
<%= sanitize(item.description) %>
<% if @on_page == "project" -%>
<%= link_to( "[C]", { :controller => "context", :action => "show", :name => urlize(item.context.name) }, :title => "View context: #{item.context.name}" ) %>
<% elsif item.project_id -%>
<%= link_to( "[P]", { :controller => "project", :action => "show", :name => urlize(item.project.name) }, :title => "View project: #{item.project.name}" ) %>
<%= sanitize(item.description) %>
<% if item.done? -%>
(<%= item.context.name %><%= ", " + item.project.name if item.project_id %>)
<% else -%>
<% if @on_page == "project" -%>
<%= link_to( "[C]", { :controller => "context", :action => "show", :name => urlize(item.context.name) }, :title => "View context: #{item.context.name}" ) %>
<% elsif item.project_id -%>
<%= link_to( "[P]", { :controller => "project", :action => "show", :name => urlize(item.project.name) }, :title => "View project: #{item.project.name}" ) %>
<% end -%>
<% end -%>
<% if item.notes? -%>
<%= toggle_show_notes( item ) %>