Sha256: 8c686daea76d927b9cffd740222f7d1ca1c403bd8d1dd109af060b6bb4126f88

Contents?: true

Size: 464 Bytes

Versions: 79

Compression:

Stored size: 464 Bytes

Contents

json.records do
  json.array!(@events) do |event|
    json.extract!(event, :id, :title, :display_date, :location, :edit_path, :edit_link, :delete_link)

    if event.published? && main_app.respond_to?(:event_path)
      json.view_link action_link("View on Site", main_app.event_path(event), "laptop")
    end

  end
end

json.pagination do
  json.currentPage @events.current_page
  json.totalPages @events.total_pages
  json.totalEntries @events.total_entries
end

Version data entries

79 entries across 79 versions & 1 rubygems

Version Path
tenon-1.0.39 app/views/tenon/events/index.json.jbuilder
tenon-1.0.38 app/views/tenon/events/index.json.jbuilder
tenon-1.0.37 app/views/tenon/events/index.json.jbuilder
tenon-1.0.36 app/views/tenon/events/index.json.jbuilder
tenon-1.0.35 app/views/tenon/events/index.json.jbuilder
tenon-1.0.33 app/views/tenon/events/index.json.jbuilder
tenon-1.0.32 app/views/tenon/events/index.json.jbuilder
tenon-1.0.31 app/views/tenon/events/index.json.jbuilder
tenon-1.0.30 app/views/tenon/events/index.json.jbuilder
tenon-1.0.29 app/views/tenon/events/index.json.jbuilder
tenon-1.0.28 app/views/tenon/events/index.json.jbuilder
tenon-1.0.27 app/views/tenon/events/index.json.jbuilder
tenon-1.0.26 app/views/tenon/events/index.json.jbuilder
tenon-1.0.25 app/views/tenon/events/index.json.jbuilder
tenon-1.0.24 app/views/tenon/events/index.json.jbuilder
tenon-1.0.23 app/views/tenon/events/index.json.jbuilder
tenon-1.0.22 app/views/tenon/events/index.json.jbuilder
tenon-1.0.21 app/views/tenon/events/index.json.jbuilder
tenon-1.0.20 app/views/tenon/events/index.json.jbuilder
tenon-1.0.19 app/views/tenon/events/index.json.jbuilder