Sha256: 32a94aedf97a7ee1a4a3d43ae603ad716db6301510da5c01fa891a0d1a354ba7

Contents?: true

Size: 1.27 KB

Versions: 15

Compression:

Stored size: 1.27 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

15 entries across 15 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 app/views/home/_account.html.haml
fat_free_crm-0.15.2 app/views/home/_account.html.haml
fat_free_crm-0.16.4 app/views/home/_account.html.haml
fat_free_crm-0.14.1 app/views/home/_account.html.haml
fat_free_crm-0.15.1 app/views/home/_account.html.haml
fat_free_crm-0.16.3 app/views/home/_account.html.haml
fat_free_crm-0.16.2 app/views/home/_account.html.haml
fat_free_crm-0.16.1 app/views/home/_account.html.haml
fat_free_crm-0.16.0 app/views/home/_account.html.haml
fat_free_crm-0.15.0 app/views/home/_account.html.haml
fat_free_crm-0.15.0.beta.2 app/views/home/_account.html.haml
fat_free_crm-0.15.0.beta app/views/home/_account.html.haml
fat_free_crm-0.14.0 app/views/home/_account.html.haml
reduced_fat_crm-0.15.0.beta app/views/home/_account.html.haml
reduced_fat_crm-0.14.0 app/views/home/_account.html.haml