Fix navigation
This commit is contained in:
parent
c460359b31
commit
74e18bb500
@ -53,3 +53,32 @@ include ../../../../pillar/src/templates/mixins/components
|
||||
span Open Projects
|
||||
| {% endif %}
|
||||
| {% endmacro %}
|
||||
|
||||
| {% macro navigation_home_project(title) %}
|
||||
+nav-secondary()
|
||||
+nav-secondary-link(
|
||||
href="{{ url_for('projects.index') }}",
|
||||
class="{% if title == 'dashboard' %}active{% endif %}")
|
||||
i.pi-star
|
||||
span My Projects
|
||||
|
||||
| {% if current_user.has_organizations() %}
|
||||
+nav-secondary-link(
|
||||
href="{{ url_for('pillar.web.organizations.index') }}",
|
||||
class="{% if title == 'organizations' %}active{% endif %}")
|
||||
i.pi-users
|
||||
span My Organizations
|
||||
| {% endif %}
|
||||
|
||||
+nav-secondary-link(
|
||||
href="{{ url_for('projects.home_project_shared_images')}}",
|
||||
class="{% if title == 'images' %}active{% endif %}")
|
||||
i.pi-picture
|
||||
span Image Sharing
|
||||
|
||||
+nav-secondary-link(
|
||||
href="{{ url_for('projects.home_project') }}",
|
||||
class="{% if title == 'blender-sync' %}active{% endif %}")
|
||||
i.pi-blender
|
||||
span Blender Sync
|
||||
| {% endmacro %}
|
||||
|
@ -1,5 +1,5 @@
|
||||
| {% extends 'layout.html' %}
|
||||
| {% from '_macros/_navigation.html' import navigation_tabs %}
|
||||
| {% from '_macros/_navigation.html' import navigation_home_project %}
|
||||
include ../../../../pillar/src/templates/mixins/components
|
||||
|
||||
| {% set title = 'organizations' %}
|
||||
@ -16,9 +16,8 @@ meta(property="og:image", content="{{ url_for('static', filename='assets/img/bac
|
||||
meta(name="twitter:image", content="{{ url_for('static', filename='assets/img/backgrounds/cloud_services_oti.jpg')}}")
|
||||
| {% endblock %}
|
||||
|
||||
|
||||
| {% block navigation_tabs %}
|
||||
| {{ navigation_tabs(title) }}
|
||||
| {{ navigation_home_project(title) }}
|
||||
| {% endblock navigation_tabs %}
|
||||
|
||||
| {% block body %}
|
||||
@ -27,8 +26,8 @@ meta(name="twitter:image", content="{{ url_for('static', filename='assets/img/ba
|
||||
+nav-secondary-link(
|
||||
class="create",
|
||||
onclick='createNewOrganization(this)')
|
||||
i.pi-plus.text-success
|
||||
span.text-success
|
||||
i.pi-plus
|
||||
| Create Organization
|
||||
| {% endif %}
|
||||
|
||||
|
@ -1,4 +1,6 @@
|
||||
| {% extends 'projects/home_layout.html' %}
|
||||
| {% set title = 'blender-sync' %}
|
||||
|
||||
| {% set subtab = 'blender_sync' %}
|
||||
| {% set learn_more_btn_url = '/blog/introducing-blender-sync' %}
|
||||
| {% block currenttab %}
|
||||
|
@ -1,9 +1,7 @@
|
||||
| {% extends 'layout.html' %}
|
||||
| {% from '_macros/_navigation.html' import navigation_tabs %}
|
||||
| {% from '_macros/_navigation.html' import navigation_home_project %}
|
||||
include ../../../../pillar/src/templates/mixins/components
|
||||
|
||||
| {% set title = 'home' %}
|
||||
|
||||
| {% block og %}
|
||||
meta(property="og:type", content="website")
|
||||
meta(property="og:url", content="https://cloud.blender.org{{ request.path }}")
|
||||
@ -20,20 +18,13 @@ meta(name="twitter:image", content="{{ url_for('static', filename='assets/img/ba
|
||||
| {% endblock %}
|
||||
|
||||
| {% block navigation_tabs %}
|
||||
| {{ navigation_tabs(title) }}
|
||||
| {{ navigation_home_project(title) }}
|
||||
| {% endblock navigation_tabs %}
|
||||
|
||||
| {% block body %}
|
||||
.dashboard-container
|
||||
|
||||
section#projects.bg-white
|
||||
+nav-secondary()(id='sub-nav-tabs__list')
|
||||
+nav-secondary-link(id="subtab-blender_sync", data-tab-url="{{ url_for('projects.home_project')}}")
|
||||
span Blender Sync
|
||||
|
||||
+nav-secondary-link(id="subtab-images", data-tab-url="{{ url_for('projects.home_project_shared_images')}}")
|
||||
span Images
|
||||
|
||||
| {% block currenttab %}{% endblock %}
|
||||
| {% endblock %}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
| {% extends 'layout.html' %}
|
||||
| {% from '_macros/_navigation.html' import navigation_tabs %}
|
||||
| {% from '_macros/_navigation.html' import navigation_home_project %}
|
||||
include ../../../../pillar/src/templates/mixins/components
|
||||
|
||||
| {% set title = 'dashboard' %}
|
||||
@ -39,10 +39,9 @@ style.
|
||||
| {% endblock %}
|
||||
|
||||
| {% block navigation_tabs %}
|
||||
| {{ navigation_tabs(title) }}
|
||||
| {{ navigation_home_project(title) }}
|
||||
| {% endblock navigation_tabs %}
|
||||
|
||||
|
||||
| {% block body %}
|
||||
.dashboard-container
|
||||
section.dashboard-main
|
||||
|
Loading…
x
Reference in New Issue
Block a user