Home project: Fix creating new projects

This commit is contained in:
2018-09-18 13:57:25 +02:00
parent e05a0c0e04
commit f0f96bf2f1

View File

@@ -47,33 +47,38 @@ style.
.dashboard-container
section.dashboard-main
section#projects.bg-white
.d-flex
+nav-secondary()(id='sub-nav-tabs__list')
+nav-secondary-link(data-tab-toggle='own_projects', class="active")
span Own Projects
| {% if projects_user|length != 0 %}
.text-muted ({{ projects_user|length }})
span
| Own Projects
| {% if projects_user | length != 0 %}
.d-inline.text-muted.pl-1 ({{ projects_user|length }})
| {% endif %}
+nav-secondary-link(data-tab-toggle='shared')
span Shared with me
| {% if projects_shared|length != 0 %}
.text-muted ({{ projects_shared|length }})
span
| Shared with me
| {% if projects_shared | length != 0 %}
.d-inline.text-muted.pl-1 ({{ projects_shared|length }})
| {% endif %}
+nav-secondary()()
| {% if current_user.has_cap('subscriber') %}
+nav-secondary-link(
id="project-create",
data-url="{{ url_for('projects.create') }}",
href="{{ url_for('projects.create') }}")
i.pi-plus
span Create New Project
span.text-success Create New Project...
| {% elif current_user.has_cap('can-renew-subscription') %}
+nav-secondary-link(
id="project-create",
data-url="{{ url_for('projects.create') }}",
href="/renew",
target="_blank")
| #[i.pi-heart-filled.text-danger] Resubscribe to Create a Project
i.pi-heart-filled.text-danger.pr-1
span Resubscribe to Create a Project
| {% endif %}
nav.nav-tabs__tab.active#own_projects