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

Jekyllize legacy pages #252

Merged
merged 23 commits into from Oct 26, 2017
Merged

Jekyllize legacy pages #252

merged 23 commits into from Oct 26, 2017

Conversation

adborden
Copy link
Contributor

@adborden adborden commented Oct 24, 2017

Part of #163
This tackles most of the legacy pages. There are a handful more to do, but will fall in another PR.

    $ find www.foia.gov/ -type f -name "*.html" | xargs sed -i  -e 's/\r$//'
- Moves the common legacy scripts to a single include
- Add a page variable to include legacy scripts (use-legacy-scripts)
- Fix the ordering of scripts (e.g. jquery should be first)
- Move popup to an include
- Include popup on all pages for simplicity
- Move script tag to glance.js init script
Move our main foia-styles.css to the bottom of the list so that it overrides the
other included stylesheets.
Keep ordering of stylesheets.
@adborden adborden self-assigned this Oct 24, 2017
@adborden
Copy link
Contributor Author

Videos on the FAQ page are not working.

@adborden
Copy link
Contributor Author

Video tooltips on glossary page are not working.

@adborden adborden changed the title [WIP] Jekyllize legacy pages Jekyllize legacy pages Oct 25, 2017
<li><a href="data.html?foia/Services/RequestDisposition.jsp?agencyName=DOJ&amp;requestYear=2016">Department of Justice: Requests Disposition 2016</a></li>
<li><a href="data.html?foia/Services/DataRequest.jsp?agencyName=DHS&amp;requestYear=2012">Department of Homeland Security: Requests 2012</a></li>
<li><a href="data.html?foia/Services/DataRequest.jsp?agencyName=DHS&amp;requestYear=2014">Department of Homeland Security: Requests 2014</a></li>
<li><a href="data.html?foia/Services/DataRequest.jsp?agencyName=DHS&amp;requestYear=2009">Department of Homeland Security: Requests 2009</a></li>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the life of me I can't figure out how these changed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's probably the line endings dos -> unix.

</div>
<!-- End FOIA Template -->
</body>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing we didn't jekyllize this one because the sitemap is going to change anyway.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but this PR isn't even complete. There are still some pages that need to be migrated, they are lower priority but we will get to them later.

Remove bottom margin on header to avoid overlap.
Allow body to scroll.
Add some margin to legacy grid on smaller screens.
@adborden
Copy link
Contributor Author

The tooltips are working, they are just slow to load.

@adborden adborden merged commit c625bc1 into master Oct 26, 2017
@adborden adborden deleted the adb-legacy branch October 26, 2017 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants