Sha256: f965c286a1197644659839dee3b71cb08b67b402abc978c4a841dba7ededc370
Contents?: true
Size: 1.14 KB
Versions: 5
Compression:
Stored size: 1.14 KB
Contents
- amount = account.opportunities.pipeline.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_id == current_user.id ? t(:me) : account.user.try(:full_name) - if user_name = t(:added_by, :time_ago => time_ago_in_words(account.created_at), :user => user_name) << " | " - else = t(:added_ago, :value => time_ago_in_words(account.created_at)) << " | " = t('pluralize.contact', account.contacts.count) << " | " = t('pluralize.opportunity', account.opportunities.count) = hook(:account_bottom, self, :account => account)
Version data entries
5 entries across 5 versions & 1 rubygems