Layout and style for new global menu.

This commit is contained in:
2018-09-15 05:41:15 +02:00
parent b0311af6b5
commit 2e9555e160
6 changed files with 124 additions and 110 deletions

View File

@@ -13,18 +13,20 @@ include ../mixins/components
| {% endif %}
+nav-secondary()
| {% if project.url != 'blender-cloud' %}
li.text-capitalize
a.nav-link.text-muted.px-0(href="{{ category_url }}")
| {{ project.category }}
span {{ project.category }}
li.px-1
i.pi-angle-right
+nav-secondary-link(
class="px-0 font-weight-bold",
class="px-1 font-weight-bold",
href="{{url_for('projects.view', project_url=project.url, _external=True)}}")
| {{ project.name }}
span {{ project.name }}
| {% endif %}
| {% if project.nodes_featured %}
| {% if project.nodes_featured and (title !='project') %}
| {# In some cases featured_nodes might might be embedded #}
| {% if '_id' in project.nodes_featured[0] %}
| {% set featured_node_id=project.nodes_featured[0]._id %}
@@ -35,7 +37,7 @@ include ../mixins/components
href="{{ url_for('projects.view_node', project_url=project.url, node_id=featured_node_id) }}",
title="Explore {{ project.name }}",
class="{% if title == 'project' %}active{% endif %}")
| Explore
span Explore
| {% endif %}
| {% for link in navigation_links %}