Sha256: 54a80debc36a7ebade34088c2667621f2059a8ccd2a58b9c6ca8fb960a942a60
Contents?: true
Size: 962 Bytes
Versions: 11
Compression:
Stored size: 962 Bytes
Contents
# 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? if contact.account && contact.account.name? summary.last << " #{t(:at)} #{contact.account.name}" end 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
11 entries across 11 versions & 1 rubygems