Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 704ab879b3
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (22 sloc) 1.05 kb
- amount = account.opportunities.sum(:amount)
%li[account]{ highlightable(dom_id(account, :tools)) }
- if amount != 0.0
.strip.some= number_to_currency(amount, :precision => 0)
- else
.strip.none None
%div
.tools{ invisible, :id => dom_id(account, :tools) }
%small
= link_to_edit(account) + " | "
= link_to_delete(account) + " "
= link_to(account.name, account) << " &ndash; "
%tt
= account.location << ", " unless account.location.blank?
== added #{time_ago_in_words(account.created_at)} ago by
== #{account.user.id == @current_user.id ? "me" : account.user.full_name}
- unless @current_user.preference[:accounts_outline] == "brief"
%dt
= link_to(account.website, account.website) << " | " if account.website?
= "phone: " << (account.tall_free_phone || account.phone) << " | " if account.tall_free_phone? || account.phone?
= pluralize(account.contacts.count, "contact") << " | "
= pluralize(account.opportunities.count, "opportunity")
Jump to Line
Something went wrong with that request. Please try again.