Sha256: a7dcf03b2ca95e0e63b40a44f158f82b7c03d344ea8240a12bff5b514166f421

Contents?: true

Size: 1.08 KB

Versions: 5

Compression:

Stored size: 1.08 KB

Contents

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

  .tools
    - if shown_on_landing_page?
      = link_to_discard(completed) + (current_user == completed.user ? ' | ' : '')
    - if can?(:manage, completed)
      = link_to_task_uncomplete(completed, bucket)  + ' | '
      = link_to_task_delete(completed, bucket)

  .indent
    %strike= auto_link h(completed.name)
    - if completed.asset_id?
      == #{t :related} #{link_to(h(completed.asset.name), polymorphic_url(completed.asset))}
    –
    %tt
      %span.cool
        -# :task_completed_by: "completed {{time_ago}} ago by {{user}}"
        = t(:task_completed_by, time_ago: distance_of_time_in_words(completed.completed_at, Time.now), date: l(completed.completed_at, format: :long), user: ((completed.completor.id != current_user.id) ? link_to(h(completed.completor.full_name), user_path(completed.completor)) : t(:me))).html_safe
    - unless completed.background_info.blank?
      %div
        %dt= completed.background_info

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fat_free_crm-0.22.1 app/views/tasks/_completed.html.haml
fat_free_crm-0.22.0 app/views/tasks/_completed.html.haml
fat_free_crm-0.21.0 app/views/tasks/_completed.html.haml
fat_free_crm-0.20.1 app/views/tasks/_completed.html.haml
fat_free_crm-0.20.0 app/views/tasks/_completed.html.haml