Sha256: 4d1836049b5a9f3bdf502af33c8914f110a3cb17c8afc8a2089ed0c27af24717
Contents?: true
Size: 826 Bytes
Versions: 25
Compression:
Stored size: 826 Bytes
Contents
json.records do json.array!(@contacts) do |contact| json.extract!(contact, :id, :name, :email, :phone, :content, :sent_date, :user_ip, :user_agent, :referrer) json.display_link action_link("View Contact Details", '#', 'eye', 'data-modal-target' => "#contact-#{contact.id}", 'data-modal-title' => 'Contact Details') json.read_link toggle_link(contact, 'read', toggle_read_contact_path(contact), ['folder-open-o', 'Mark as Unread'], ['folder-o', 'Mark as Read']) json.reply_link toggle_link(contact, 'replied', toggle_replied_contact_path(contact), ['check', 'Mark as Pending'], ['reply', 'Mark as Replied']) json.delete_link delete_link(contact) end end json.pagination do json.currentPage @contacts.current_page json.totalPages @contacts.total_pages json.totalEntries @contacts.total_entries end
Version data entries
25 entries across 25 versions & 1 rubygems