Sha256: a39c838cb8bcb81203d2f41ecccd6a99f23b4a13ebfa611af607b9f846c490af

Contents?: true

Size: 820 Bytes

Versions: 54

Compression:

Stored size: 820 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', 'This is true'], ['folder-o', 'This is false'])
    json.reply_link toggle_link(contact, 'replied', toggle_replied_contact_path(contact), ['check', 'This is true'], ['reply', 'This is false'])
    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

54 entries across 54 versions & 1 rubygems

Version Path
tenon-1.0.54 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.53 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.52 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.51 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.50 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.49 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.48 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.47 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.46 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.45 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.44 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.43 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.42 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.41 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.40 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.39 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.38 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.37 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.36 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.35 app/views/tenon/contacts/index.json.jbuilder