Changeset 744

Show
Ignore:
Timestamp:
02/05/08 14:47:14 (1 year ago)
Author:
markku
Message:

Added all assigned workers to the print view of #526 - Missing from [743].

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/app/controllers/task_controller.rb

    r743 r744  
    419419    @hide_history = (params[:hide_history] == '1') 
    420420    define_priority_options 
     421    @assigned_workers = @task.workers 
    421422    render :layout => false 
    422423  end 
  • trunk/app/views/task/print_view.rhtml

    r743 r744  
    7171    <td><%= h(@task.spent_working_time) + ' ' + _('hours') if @task.spent_working_time %></td> 
    7272  </tr> 
     73  <% unless @assigned_workers.empty? -%> 
     74  <tr> 
     75    <th class="first"><%= _('Assigned users') %></th> 
     76    <td colspan="3"><%= @assigned_workers.map { |w| w.login_and_name }.join(', ') %></td> 
     77  </tr> 
     78  <% end -%> 
    7379  <tr><th colspan="4" class="full_row"><%= _('Description') %></th></tr> 
    7480  <tr> 

© 2004-2007 Norfello Oy All Rights Reserved