app/helpers/tasks_helper.rb
# Task summary for RSS/ATOM feed.
#----------------------------------------------------------------------------
Task summary for RSS/ATOM feed.
Task summary for RSS / ATOM feed .
def task_summary(task)
    summary = [ task.category.blank? ? t(:other) : t(task.category) ]
    if @view != "completed"
      if @view == "pending" && task.user != current_user
        summary << t(:task_from, task.user.full_name)
      elsif @view == "assigned"
        summary << t(:task_from, task.assignee.full_name)
      end
      summary << "#{t(:related)} #{task.asset.name} (#{task.asset_type.downcase})" if task.asset_id?
      summary << if task.bucket == "due_asap"
        t(:task_due_now)
      elsif task.bucket == "due_later"
        t(:task_due_later)
      else
        l(task.due_at.localtime, :format => :mmddhhss)
      end
    else 
      summary << "#{t(:related)} #{task.asset.name} (#{task.asset_type.downcase})" if task.asset_id?
      summary << t(:task_completed_by,
                   :time_ago => distance_of_time_in_words(task.completed_at, Time.now),
                   :date     => l(task.completed_at.localtime, :format => :mmddhhss),
                   :user     => task.completor.full_name)
    end
    summary.join(', ')
  end
def task_summary ( task ) summary = [ task . category . blank? ? t ( :other ) : t ( task . category ) ] if @view != "completed" if @view == "pending" && task . user != current_user summary << t ( :task_from , task . user . full_name ) elsif @view == "assigned" summary << t ( :task_from , task . assignee . full_name ) end summary << "#{t(:related)} #{task.asset.name} (#{task.asset_type.downcase})" if task . asset_id? summary << if task . bucket == "due_asap" t ( :task_due_now ) elsif task . bucket == "due_later" t ( :task_due_later ) else l ( task . due_at . localtime , :format => :mmddhhss ) end else summary << "#{t(:related)} #{task.asset.name} (#{task.asset_type.downcase})" if task . asset_id? summary << t ( :task_completed_by , :time_ago => distance_of_time_in_words ( task . completed_at , Time . now ) , :date => l ( task . completed_at . localtime , :format => :mmddhhss ) , :user => task . completor . full_name ) end summary . join ( ', ' ) end
Task summary for RSS/ATOM feed.
Task summary for RSS / ATOM feed .
# completed
task
<not_specific>