Sha256: 264c448e26338081684b85b2bb1671febd77cc9567904a82ec081a579bf8c442

Contents?: true

Size: 975 Bytes

Versions: 21

Compression:

Stored size: 975 Bytes

Contents

%li.highlight[opportunity]
  - if opportunity.stage
    .strip{:class => opportunity.stage}= t(opportunity.stage)
  - else
    .strip.white #{t :other}

  %ul.tools
    - if can?(:update, opportunity)
      %li= link_to_edit(opportunity)

    - if shown_on_landing_page?
      %li= link_to_discard(opportunity)

    - if can?(:destroy, opportunity)
      %li= link_to_delete(opportunity)

  .indent
    = link_to_if can?(:read, opportunity), opportunity.name, opportunity
    - if (account = opportunity.account) && account.id
      == #{t :from} #{link_to_if can?(:read, account), account.name, account_path(account)}
    %tt
      –
      - user_name = opportunity.user.try(:full_name)
      - if user_name
        = t(:added_by, :time_ago => timeago(opportunity.created_at), :user => h(user_name)).html_safe
      - else
        = t(:added_ago, :value => timeago(opportunity.created_at)).html_safe

    = hook(:opportunity_bottom, self, :opportunity => opportunity)

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 app/views/opportunities/_index_brief.html.haml
fat_free_crm-0.15.2 app/views/opportunities/_index_brief.html.haml
fat_free_crm-0.16.4 app/views/opportunities/_index_brief.html.haml
fat_free_crm-0.14.1 app/views/opportunities/_index_brief.html.haml
fat_free_crm-0.15.1 app/views/opportunities/_index_brief.html.haml
fat_free_crm-0.16.3 app/views/opportunities/_index_brief.html.haml
fat_free_crm-0.16.2 app/views/opportunities/_index_brief.html.haml
fat_free_crm-0.16.1 app/views/opportunities/_index_brief.html.haml
fat_free_crm-0.16.0 app/views/opportunities/_index_brief.html.haml
fat_free_crm-0.15.0 app/views/opportunities/_index_brief.html.haml
fat_free_crm-0.15.0.beta.2 app/views/opportunities/_index_brief.html.haml
fat_free_crm-0.15.0.beta app/views/opportunities/_index_brief.html.haml
fat_free_crm-0.14.0 app/views/opportunities/_index_brief.html.haml
reduced_fat_crm-0.15.0.beta app/views/opportunities/_index_brief.html.haml
reduced_fat_crm-0.14.0 app/views/opportunities/_index_brief.html.haml
fat_free_crm-0.13.6 app/views/opportunities/_index_brief.html.haml
fat_free_crm-0.13.5 app/views/opportunities/_index_brief.html.haml
fat_free_crm-0.13.4 app/views/opportunities/_index_brief.html.haml
fat_free_crm-0.13.2 app/views/opportunities/_index_brief.html.haml
fat_free_crm-0.13.1 app/views/opportunities/_index_brief.html.haml