-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor related_to_step_navs function to superceed the original check
This is required because the show_related_links function is used by content_tagged_to_a_reasonable_number_of_step_by_steps which is used to display the heading of the step by step. When a content item has step by step turned off by default, it will not contain any step_navs objects - as this is a `&&` statement, it will return false straight away. Inside the active_step_by_step? function, we merge both lists together, therefore, will display the related step by step links where appropriate.
- Loading branch information
Dilwoar Hussain
committed
Sep 25, 2018
1 parent
39d42c0
commit dd62c7a
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters