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

#345 Implement crumbs #346

Merged
merged 6 commits into from
Sep 23, 2019
Merged

#345 Implement crumbs #346

merged 6 commits into from
Sep 23, 2019

Conversation

duker33
Copy link
Collaborator

@duker33 duker33 commented Sep 20, 2019

Closes #345

Kick out Breadcrumbs class because of pretty small set of real breadcrumbs code.
Implemented all it's functions inside logic.Page.breadcrumbs method

@duker33 duker33 self-assigned this Sep 20, 2019
(page.display_menu_title, '', logic.Page(page).siblings)
]

def breadcrumbs(page: Page, separator='', show_siblings=False):
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe it would be much better to get rid this cryptic show_siblings and create two separate functions breadcrumbs and breadcrumbs_with_siblings

@duker33 duker33 merged commit 6350027 into master Sep 23, 2019
@duker33 duker33 deleted the 345_implement_crumbs branch September 23, 2019 09:59
<span class="breadcrumbs-separator">{{ separator }}</span>
{% endif %}
</span>
{% for logic_page in breadcrumbs %}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fd

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.

page.py:20-22: Implement Breadcrumbs class. Use it...
2 participants