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

Stop using request variants to determine layout #829

Merged
merged 1 commit into from
Mar 15, 2018
Merged

Conversation

tijmenb
Copy link
Contributor

@tijmenb tijmenb commented Mar 14, 2018

This removes the code for the taxonomy_navigation requests variants and uses if statements in the views instead.

This makes it clearer what's going on. It shouldn't make any change in the pages.

I suspect that most of these if statements aren't actually meaningful and can be removed. That's for a follow up PR.

https://trello.com/c/WJlqy3VD

This removes the code for the taxonomy_navigation requests variants and
uses `if` statements in the views instead.

This makes it clearer what's going on. It shouldn't make any change in
the pages.

I suspect that most of these `if` statements aren't actually meaningful
and can be removed. That's for a follow up PR.
Copy link
Contributor

@fofr fofr left a comment

Choose a reason for hiding this comment

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

Thanks @tijmenb!

@@ -1,15 +0,0 @@
<div class="column-third add-title-margin">
<% if @navigation.should_present_taxonomy_navigation? %>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The observant reader will notice that because this partial variant will only be shown when should_present_taxonomy_navigation? is true, this statement will also always be true. The else could never have been executed.

@tijmenb tijmenb merged commit ca0cfdb into master Mar 15, 2018
@tijmenb tijmenb deleted the refactors branch March 15, 2018 09:32
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.

2 participants