cfpb / regulations-site

(DEPRECATED) Web interface for viewing U.S. federal regulations and other regulatory information
Other
28 stars 43 forks source link

Search results changes #535

Closed jpyuda closed 10 years ago

jpyuda commented 10 years ago

This changes the wayfinding header on search results page, adds a search term and version searched subhead, makes the links blue, and adds a "Page X of Y" section to the footer.

cmc333333 commented 10 years ago

After line 80ish of partial_search.py, in the same indented block as context['version_by_date'] = notice['effective_on'], add:

context['version_current'] = version['timeline'] == 'current'

The chunk of code loops overall all versions (which have multiple notice ids) of the reg (where versions contain whether the version is past/current/future), loops through each of the notice ids and, when it finds a notice id that's good, marks that notice's date. The addition mentioned above also marks if that version (i.e. the one associated with the notice) is current or not.

Sorry it's not more intuitive!

ascott1 commented 10 years ago

I think we should have gotten you set up with a dev environment a long time ago.