- amount = account.opportunities.pipeline.map(&:weighted_amount).sum %li[account]{ highlightable(dom_id(account, :tools)) } - if account.category .strip{:class => account.category} #{t(account.category)} - else .strip{:style => "color: gray;"} #{t :other} .tools{ invisible, :id => dom_id(account, :tools) } = hook(:account_tools_before, self, :account => account) = link_to_edit(account) + " | " = link_to_delete(account) .indent = link_to(h(account.name), account) - if amount != 0.0 %span.amount= number_to_currency(amount, :precision => 0) – %tt = account.location << ", " unless account.location.blank? = t(:added_by, :time_ago => time_ago_in_words(account.created_at), :user => (account.user.id == @current_user.id ? t(:me) : h(account.user.full_name))) << " | " = t('pluralize.contact', account.contacts.count) << " | " = t('pluralize.opportunity', account.opportunities.count) - unless @current_user.preference[:accounts_outline] == "brief" %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.tag_list.present? %dt .tags= tags_for_index(account) = hook(:account_bottom, self, :account => account)