Sha256: 7c14113c88f08305a4a2c0f19dbc9dc04ee50a1e53f480c75a46ed3163fa18ea

Contents?: true

Size: 1.53 KB

Versions: 13

Compression:

Stored size: 1.53 KB

Contents

- amount = account.pipeline_opportunities.map(&:weighted_amount).sum
%li.highlight[account]
  - if account.category
    .strip{class: account.category} #{t(account.category)}
  - else
    .strip{style: "color: gray;"} #{t :other}

  %ul.tools
    = hook(:account_tools_before, self, account: account)

    - if can?(:update, account)
      %li= link_to_edit(account)

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

  .indent
    = link_to(account.name, account)
    - if amount != 0.0
      %span.amount= number_to_currency(amount, precision: 0)
    –
    %tt
      = account.location + ", " unless account.location.blank?
      - user_name = account.user.try(:full_name)
      - if user_name
        = t(:added_by, time_ago: timeago(account.created_at), user: h(user_name)).html_safe << " | "
      - else
        = t(:added_ago, value: timeago(account.created_at)).html_safe << " | "
      = t('pluralize.contact', account.contacts_count) + " | "
      = t('pluralize.opportunity', account.opportunities_count)

    %dt
      = stars_for(account)
      = " | ".html_safe << link_to(account.website, account.website.to_url) if account.website.present?
      = " | ".html_safe << link_to_email(account.email) if account.email.present?
      = " | ".html_safe << t(:phone_small) << ": " << (account.toll_free_phone? ? account.toll_free_phone : account.phone) if account.toll_free_phone? || account.phone?

    - if account.tags.present?
      %dt
        .tags= tags_for_index(account)

    = hook(:account_bottom, self, account: account)

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fat_free_crm-0.22.1 app/views/accounts/_index_long.html.haml
fat_free_crm-0.22.0 app/views/accounts/_index_long.html.haml
fat_free_crm-0.21.0 app/views/accounts/_index_long.html.haml
fat_free_crm-0.20.1 app/views/accounts/_index_long.html.haml
fat_free_crm-0.20.0 app/views/accounts/_index_long.html.haml
fat_free_crm-0.19.2 app/views/accounts/_index_long.html.haml
fat_free_crm-0.19.0 app/views/accounts/_index_long.html.haml
fat_free_crm-0.18.2 app/views/accounts/_index_long.html.haml
fat_free_crm-0.17.3 app/views/accounts/_index_long.html.haml
fat_free_crm-0.18.1 app/views/accounts/_index_long.html.haml
fat_free_crm-0.18.0 app/views/accounts/_index_long.html.haml
fat_free_crm-0.17.2 app/views/accounts/_index_long.html.haml
fat_free_crm-0.17.1 app/views/accounts/_index_long.html.haml