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

Configure which best bridge days get shown #28

Closed
wintermeyer opened this issue Feb 9, 2019 · 0 comments
Closed

Configure which best bridge days get shown #28

wintermeyer opened this issue Feb 9, 2019 · 0 comments

Comments

@wintermeyer
Copy link
Member

Currently the page http://localhost:4000/bridge_days/federal_states/bayern/ renders the top 6 bridge days. I'd like to have a little bit more configuration control which bridge days get rendered.

I'd like to add the following in the def show(conn, %{"id" => id}) function in lib/mehr_schulferien_web/controllers/bridge_day/federal_state_controller.ex:

search_for_available_days = [1,2,3,4,5,6]

So this would result in the current view. In total 6.

But with this issue I would change it to

search_for_available_days = [1,1,2,2,3,3,4,4,5,5,6,6]

To display the first two of each (the best and the second best fit). So in total 12.

If you have a better idea how to configure that: Please do so. This is just an example.

Please within this issue if this is not clear.

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

1 participant