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