Sha256: 973864aa44381911d45ee412583c73bf4a44e9bb0155d61ef1f9d25b03cefb8b

Contents?: true

Size: 1.25 KB

Versions: 13

Compression:

Stored size: 1.25 KB

Contents

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

  .indent
    = link_to(h(account.name), account)
    –
    %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

    - unless current_user.preference[:accounts_index_view] == "accounts_index_brief"
      %dt
        = link_to(account.website, account.website.to_url) + " | " if account.website.present?
        = link_to_email(account.email) + " | " if account.email.present?
        = t(:phone_small) + ": " + (account.toll_free_phone || account.phone) << " | " if account.toll_free_phone? || account.phone?
        = t('pluralize.contact', account.contacts_count) + " | "
        = t('pluralize.opportunity', account.opportunities_count)
      - if account.tags.present?
        %dt
          .tags= tags_for_dashboard(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/home/_account.html.haml
fat_free_crm-0.22.0 app/views/home/_account.html.haml
fat_free_crm-0.21.0 app/views/home/_account.html.haml
fat_free_crm-0.20.1 app/views/home/_account.html.haml
fat_free_crm-0.20.0 app/views/home/_account.html.haml
fat_free_crm-0.19.2 app/views/home/_account.html.haml
fat_free_crm-0.19.0 app/views/home/_account.html.haml
fat_free_crm-0.18.2 app/views/home/_account.html.haml
fat_free_crm-0.17.3 app/views/home/_account.html.haml
fat_free_crm-0.18.1 app/views/home/_account.html.haml
fat_free_crm-0.18.0 app/views/home/_account.html.haml
fat_free_crm-0.17.2 app/views/home/_account.html.haml
fat_free_crm-0.17.1 app/views/home/_account.html.haml