Skip to content

Template Site Map

christine edited this page Oct 23, 2017 · 1 revision

Mapping of URLs to templates for /data:

.jinja templates use the Jinja templating engine.
.hbs are Handlebars.js templates.

--

/data - data/templates/landing.jinja

/data/advanced - data/templates/advanced.jinja

--

Campaign finance datatables
/data/candidates/(candidate) - data/templates/candidates-single.jinja, data/templates/partials/candidate/*
/data/committees/(committee) - data/templates/committees-single.jinja, data/templates/partials/committee/*
/data/receipts/*
/data/disbursements
/data/filings
/data/independent-expenditures
/data/electioneering-communications
/data/communication-costs
/data/reports/*

The main templates for datatables are:
Filters - data/templates/partials/<slug>-filter.jinja (slug being candidates, receipts, etc)
Datatable header - /static/js/templates/tables/exportWidget.hbs
Datatable - data/templates/datatable.jinja

--

/data/elections - data/templates/election-lookup.jinja
/data/elections/* - data/templates/elections.jinja

/data/raising - data/templates/raising-breakdown.jinja
/data/spending - data/templates/spending-breakdown.jinja

/data/legal/advisory-opinions/- data/templates/legal-advisory-opinions-landing.jinja
/data/legal/enforcement - data/templates/legal-enforcement-landing.jinja
/data/legal/statutes - data/templates/legal-statutes-landing.jinja

URLs

URLs are defined in data/urls.py, fec/urls.py, legal/urls.py

Clone this wiki locally