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.33 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.32 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.31 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.30 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.29 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.28 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.27 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.26 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.25 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.24 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.23 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.22 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.21 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.20 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.19 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.18 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.17 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.16 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.15 app/views/tenon/contacts/index.json.jbuilder
tenon-1.0.14 app/views/tenon/contacts/index.json.jbuilder