Sha256: 22fcc1530cbfe6a3306e6d13b2a72b0550255a2f152913a31ed2de9f5fd78f6a
Contents?: true
Size: 960 Bytes
Versions: 7
Compression:
Stored size: 960 Bytes
Contents
# frozen_string_literal: true # Copyright (c) 2008-2013 Michael Dvorkin and contributors. # # Fat Free CRM is freely distributable under the terms of MIT license. # See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php #------------------------------------------------------------------------------ module ContactsHelper # Contact summary for RSS/ATOM feeds. #---------------------------------------------------------------------------- def contact_summary(contact) summary = [''] summary << contact.title.titleize if contact.title? summary << contact.department if contact.department? summary.last += " #{t(:at)} #{contact.account.name}" if contact.account&.name? summary << contact.email if contact.email.present? summary << "#{t(:phone_small)}: #{contact.phone}" if contact.phone.present? summary << "#{t(:mobile_small)}: #{contact.mobile}" if contact.mobile.present? summary.join(', ') end end
Version data entries
7 entries across 7 versions & 1 rubygems