<%
task_id      = "task_#{task.id}"
details_id   = "#{task_id}_details"
links = []
task.users.each do |user|
  if user == current_user
    links << link_to(current_user.login, me_url(:action => 'tasks', :id => nil))
  else
    links << link_to_user(user, :action => 'tasks')
  end
end
-%>
    <div class='name'>
      <%= friendly_date(task.updated_at) if task.updated_at? -%>

      <%= "<b>#{links.join(', ')}:</b>" if links.any? -%>

      <% if @upart and @upart.viewed_at? and task.created_at? %>
        <% if @upart.viewed_at < task.created_at - 1.minute %>
          <%= "(new)"  -%>
        <% elsif @upart.viewed_at < task.updated_at - 1.minute%>
          <%= "(modified)" -%>
        <% end %>
      <% end %>
      
      <% if task.description.any? -%>
        <span><%= link_to_function h(task.name), "Element.toggle('#{details_id}')" %></span>
      <% else -%>
        <%=h task.name %>
      <% end %>
    </div>
    <div class='indent task_details' id="<%=details_id%>" style='display: none'>
      <%= task.description_html %>
    </div>

<%
task_id      = "task_#{task.id}"
details_id   = "#{task_id}_details"
links = []
task.users.each do |user|
  if user == current_user
    links << link_to(current_user.login, me_url(:action => 'tasks', :id => nil))
  else
    links << link_to_user(user, :action => 'tasks')
  end
end
-%>
    <div class='name'>
      <%= friendly_date(task.updated_at) if task.updated_at? -%>

      <%= "<b>#{links.join(', ')}:</b>" if links.any? -%>

      <% if @upart and @upart.viewed_at? and task.created_at? %>
        <% if @upart.viewed_at < task.created_at - 10.seconds %>
          <%= "(new)"  -%>
        <% elsif @upart.viewed_at < task.updated_at - 10.seconds%>
          <%= "(modified)" -%>
        <% end %>
      <% end %>
      
      <% if task.description.any? -%>
        <span><%= link_to_function h(task.name), "Element.toggle('#{details_id}')" %></span>
      <% else -%>
        <%=h task.name %>
      <% end %>
    </div>
    <div class='indent task_details' id="<%=details_id%>" style='display: none'>
      <%= task.description_html %>
    </div>

Reduce delay in debouncing notification of modified tasks in task list.
Reduce delay in debouncing notification of modified tasks in task list.

