Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create generic full width page template #3503

Closed
2 tasks done
Tracked by #174
patphongs opened this issue Jan 31, 2020 · 2 comments
Closed
2 tasks done
Tracked by #174

Create generic full width page template #3503

patphongs opened this issue Jan 31, 2020 · 2 comments
Assignees
Milestone

Comments

@patphongs
Copy link
Member

patphongs commented Jan 31, 2020

Summary

What we're after:
The presidential map will be built on a full width page jinja template within the data section. The template will be similar to Wagtail full width templates, but without the reporting dates javascript and stylings. Also this does not need to be tied to Wagtail.

URL for the map: https://www.fec.gov/data/candidates/president/presidential-map/

Completion criteria

  • Make the data full width template exist for use
  • Include You may also like section at the bottom of this template
@johnnyporkchops
Copy link
Contributor

Paired with @rfultz on this. Trying to resolve issues with making a re-usable/generic Jinja template for full-width, so for now we are using either election-lookup.jinja or raisingbythenumbers.jinja templates as starting point.

@johnnyporkchops
Copy link
Contributor

  • The template, re-usable for other full-width /data pages can pull in a CSS file with the page_specific_css variable name from a view.
    <link rel="stylesheet" type="text/css" href="{{ asset_for_css(page_specific_css) }}" />
  • You might also like section has been added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants