UI Navigation: Cleanup (adding comments).
This commit is contained in:
@@ -24,7 +24,7 @@ button.navbar-toggler(
|
|||||||
href="{{ url_for('cloud.learn') }}",
|
href="{{ url_for('cloud.learn') }}",
|
||||||
class="{% if title in ('learn', 'courses', 'workshops') %}active{% endif %}")
|
class="{% if title in ('learn', 'courses', 'workshops') %}active{% endif %}")
|
||||||
span Training
|
span Training
|
||||||
|
|
||||||
+nav-secondary-link(
|
+nav-secondary-link(
|
||||||
href="{{ url_for('cloud.open_projects') }}",
|
href="{{ url_for('cloud.open_projects') }}",
|
||||||
class="{% if title == 'open-projects' %}active{% endif %}")
|
class="{% if title == 'open-projects' %}active{% endif %}")
|
||||||
@@ -119,12 +119,15 @@ button.navbar-toggler(
|
|||||||
)
|
)
|
||||||
i.pi-blender-cloud
|
i.pi-blender-cloud
|
||||||
i.pi-angle-down
|
i.pi-angle-down
|
||||||
|
|
||||||
+nav-secondary(class="collapse navbar-collapse")#navigationLinks
|
+nav-secondary(class="collapse navbar-collapse")#navigationLinks
|
||||||
|
|
||||||
|
//- Blender Cloud logo.
|
||||||
+nav-secondary-link(
|
+nav-secondary-link(
|
||||||
href="{{ url_for('main.homepage') }}")
|
href="{{ url_for('main.homepage') }}")
|
||||||
i.pi-blender-cloud
|
i.pi-blender-cloud
|
||||||
|
|
||||||
| {% if project.url != 'blender-cloud' %}
|
//- Category (Films, Courses, etc).
|
||||||
+nav-secondary-link(
|
+nav-secondary-link(
|
||||||
href="{{ category_url }}",
|
href="{{ category_url }}",
|
||||||
class="px-0")
|
class="px-0")
|
||||||
@@ -132,12 +135,15 @@ button.navbar-toggler(
|
|||||||
li(class="nav-item px-1")
|
li(class="nav-item px-1")
|
||||||
i.pi-angle-right
|
i.pi-angle-right
|
||||||
|
|
||||||
|
//- Project Name.
|
||||||
|
| {% if project.url != 'blender-cloud' %}
|
||||||
+nav-secondary-link(
|
+nav-secondary-link(
|
||||||
class="font-weight-bold{% if title == 'landing' %} active{% endif %}",
|
class="font-weight-bold{% if title == 'landing' %} active{% endif %}",
|
||||||
href="{{url_for('projects.view', project_url=project.url, _external=True)}}")
|
href="{{url_for('projects.view', project_url=project.url, _external=True)}}")
|
||||||
span {{ project.name }}
|
span {{ project.name }}
|
||||||
| {% endif %}
|
| {% endif %}
|
||||||
|
|
||||||
|
//- Pages (Blog, Team, Awards, etc).
|
||||||
| {% for link in navigation_links %}
|
| {% for link in navigation_links %}
|
||||||
+nav-secondary-link(
|
+nav-secondary-link(
|
||||||
href="{{ link['url'] }}",
|
href="{{ link['url'] }}",
|
||||||
@@ -145,6 +151,7 @@ button.navbar-toggler(
|
|||||||
span {{ link['label'] }}
|
span {{ link['label'] }}
|
||||||
| {% endfor %}
|
| {% endfor %}
|
||||||
|
|
||||||
|
//- 'Explore' links to first featured node it can find.
|
||||||
| {% if project.nodes_featured %}
|
| {% if project.nodes_featured %}
|
||||||
| {# In some cases featured_nodes might might be embedded #}
|
| {# In some cases featured_nodes might might be embedded #}
|
||||||
| {% if '_id' in project.nodes_featured[0] %}
|
| {% if '_id' in project.nodes_featured[0] %}
|
||||||
@@ -159,6 +166,7 @@ button.navbar-toggler(
|
|||||||
span Explore
|
span Explore
|
||||||
| {% endif %}
|
| {% endif %}
|
||||||
|
|
||||||
|
//- Link to Production Tools (Attract, Flamenco, SVN, etc).
|
||||||
| {% if extension_sidebar_links %}
|
| {% if extension_sidebar_links %}
|
||||||
+nav-secondary()
|
+nav-secondary()
|
||||||
li.nav-item.dropdown
|
li.nav-item.dropdown
|
||||||
|
Reference in New Issue
Block a user