houdini/app/views/app_data/_nonprofit.jbuilder
2021-01-06 17:15:20 -06:00

13 lines
No EOL
580 B
Ruby

# frozen_string_literal: true
# License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE
json.extract! nonprofit, :id, :name, #basics
:brand_color, :brand_font, :tagline, #brand
:zip_code, :state_code, :city, :latitude, :longitude, #location
:slug, :state_code_slug, :city_slug, #slugs
:no_anon #options
json.url nonprofit_path(nonprofit)
json.logo do
json.normal rails_storage_proxy_url(nonprofit.logo_by_size(:normal))
end