%li.highlight[all]
  - unless all.category.blank?
    .strip{:class => all.category}= t(all.category)
  - else
    .strip.white #{t :other}

  .tools
    = "Hello."

  .indentwide
    - if all.completed?
      %strike= all.name
    - else
      = all.name
    %tt
      - if all.assigned_to
        = " | Assigned to"
        = link_to(all.assignee.name, user_path(all.assignee))
      = "| "

      - if all.bucket == "due_asap"
        %span.urgent= t(:task_due_now)

      - else
        - if all.at_specific_time?
          - if all.due_at < Time.now
            %span.urgent= t("Overdue")
          - else
            = t(:task_due_in, distance_of_time_in_words(Time.now, all.due_at))
            = '(' << l(all.due_at.localtime, :format => :mmddhhss) << ')'


%li.highlight[all]
  - unless all.category.blank?
    .strip{:class => all.category}= t(all.category)
  - else
    .strip.white #{t :other}

  .tools
    = "Hello."

  .indentwide
    - if all.completed?
      %strike= all.name
    - else
      = all.name
    %tt
      - if all.assigned_to
        = " | Assigned to"
        = link_to(all.assignee.name, user_path(all.assignee))
      = "| "

      - if all.bucket == "due_asap"
        %span.urgent= t(:task_due_now)

      - elsif all.bucket == "due_later"
        = t(:task_due_later)

      - else
        - if all.at_specific_time?
          - if all.due_at < Time.now
            %span.urgent= t("Overdue by " + distance_of_time_in_words(all.due_at, Time.now))
          - else
            = t(:task_due_in, distance_of_time_in_words(Time.now, all.due_at))
            = '(' << l(all.due_at.localtime, :format => :mmddhhss) << ')'
        - else
          - if all.due_at < Date.today
            %span.warn= distance_of_time_in_words(all.due_at, Time.now)
          - elsif all.due_at > Date.today
            = t(:task_due_in, distance_of_time_in_words(Time.now, all.due_at.localtime.end_of_day))
          - else
            %span.cool= t(:task_due_today)


Improve display of All Tasks index
Improve display of All Tasks index
