mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
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:
parent
5a331c0a66
commit
7a9a19a563
1 changed files with 10 additions and 5 deletions
|
|
@ -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 ) %>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue