-
Notifications
You must be signed in to change notification settings - Fork 5
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
#822 Create categories matrix page #829
Changes from all commits
6c38b46
20763f6
d9fa9ae
29ba70e
d540e28
cb41258
dd1b0d8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -7,16 +7,21 @@ | |||||
{% breadcrumbs_with_siblings page %} | ||||||
<h1>{{ page.display.h1 }}</h1> | ||||||
|
||||||
<ul class="catalog-list"> | ||||||
{% recursetree nodes %} | ||||||
<li class="catalog-list-item"> | ||||||
<a href="{{ node.url }}" class="catalog-list-item">{{ node.name }}</a> | ||||||
{% if not node.is_leaf_node %} | ||||||
<ul class="catalog-list-children"> | ||||||
{{ children }} | ||||||
<div class="container container-fluid"> | ||||||
<div class="row around-xs"> | ||||||
{% for root_name, children in matrix.items %} | ||||||
<div class="category-block"> | ||||||
<h2>{{ root_name }}</h2> | ||||||
<ul> | ||||||
{% for category in children %} | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
up to you There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we already use category in the same place at STB. So, i'll leave like this for consistency. |
||||||
<li class="second-level-category"> | ||||||
<a href="{{ category.url }}">{{ category.name }}</a> | ||||||
</li> | ||||||
{% endfor %} | ||||||
</ul> | ||||||
{% endif %} | ||||||
</li> | ||||||
{% endrecursetree %} | ||||||
</ul> | ||||||
</div> | ||||||
{% endfor %} | ||||||
</div> | ||||||
</div> | ||||||
|
||||||
{% endblock %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is little bit unclear. Let's create todo to document matrix structure