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

Version Path
tenon-1.1.4 app/views/tenon/contacts/index.json.jbuilder
tenon-1.1.3 app/views/tenon/contacts/index.json.jbuilder
tenon-1.1.2 app/views/tenon/contacts/index.json.jbuilder
tenon-1.1.1 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.76 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.75 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.74 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.73 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.72 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.71 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.70 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.69 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.68 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.67 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.66 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.65 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.64 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.63 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.62 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.61 app/views/tenon/contacts/index.json.jbuilder