#102 coreos-download: revert routing for coreos-download and use URL parameters instead
Merged by dustymabe. Opened by abai.
fedora-web/ abai/websites coreos-download  into  master

Download 102.patch

Reverts https://pagure.io/fedora-web/websites/pull-request/99# since using routing to different tabs introduces more overhead and over-complicates the problem.

For the need of querying different tabs under /coreos/download, a query parameter tab is used and set when clicking on tabs. This is much simpler than adding routing and redirect to tabs with routes.

Also adds an option to specify stream by setting the URL parameter stream.

Usage:
- http://localhost:5000/en/coreos/download/?tab=cloud_operators
- http://localhost:5000/en/coreos/download/?stream=testing
- http://localhost:5000/en/coreos/download/?tab=cloud_launchable&stream=stable
- http://localhost:5000/en/coreos/download?tab=metal_virtualized&stream=testing

Closes: https://github.com/coreos/fedora-coreos-tracker/issues/417
Signed-off-by: Allen Bai abai@redhat.com

Demo

Does this look reasonable? Thanks!

cc @dustymabe @codeblock @bcotton

this looks amazing. I did want the ability to specify stream as well! thanks @abai

looks like ben is out until the end of march..

Pull-Request has been merged by dustymabe

Thanks for merging @dustymabe !

Metadata