Project: Sort navigation links

See T56813
This commit is contained in:
Pablo Vazquez 2018-09-15 22:11:53 +02:00
parent 88c0ef0e7c
commit e5b7905a5c

View File

@ -26,7 +26,12 @@ include ../mixins/components
span {{ project.name }} span {{ project.name }}
| {% endif %} | {% endif %}
| {% if project.nodes_featured and (title !='project') %} | {% for link in navigation_links %}
+nav-secondary-link(href="{{ link['url'] }}")
| {{ link['label'] }}
| {% endfor %}
| {% 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] %}
| {% set featured_node_id=project.nodes_featured[0]._id %} | {% set featured_node_id=project.nodes_featured[0]._id %}
@ -40,9 +45,4 @@ include ../mixins/components
span Explore span Explore
| {% endif %} | {% endif %}
| {% for link in navigation_links %}
+nav-secondary-link(href="{{ link['url'] }}")
| {{ link['label'] }}
| {% endfor %}
| {% endmacro %} | {% endmacro %}