Project View: fix alignment of edit tools

This commit is contained in:
2018-09-06 18:16:00 +02:00
parent 94c2c6e550
commit 9aae856ac8

View File

@@ -85,7 +85,7 @@ link(href="{{ url_for('static_pillar', filename='assets/css/project-main.css') }
| {% endblock %} | {% endblock %}
| {% block navigation_tabs %} | {% block navigation_tabs %}
+nav-secondary()(class="bg-white") +nav-secondary()
| {% if project.category == 'course' %} | {% if project.category == 'course' %}
li.text-capitalize li.text-capitalize
a.nav-link.text-muted.px-0(href="{{ url_for('cloud.courses') }}") a.nav-link.text-muted.px-0(href="{{ url_for('cloud.courses') }}")
@@ -178,17 +178,6 @@ link(href="{{ url_for('static_pillar', filename='assets/css/project-main.css') }
#project_nav(class="{{ title }}") #project_nav(class="{{ title }}")
#project_nav-container #project_nav-container
| {% if title != 'about' %} | {% if title != 'about' %}
//- +nav-secondary(class="bg-white")
//- +nav-secondary-link(
//- class="active",
//- href="{{url_for('projects.view', project_url=project.url, _external=True)}}")
//- | {{ project.name }}
//- #project_nav-header.bg-white
//- a.project-title.p-2.font-weight-bold.text-dark(
//- href="{{url_for('projects.view', project_url=project.url, _external=True)}}")
//- | {{ project.name }}
| {% block project_tree %} | {% block project_tree %}
#project_tree.bg-white #project_tree.bg-white
| {% endblock project_tree %} | {% endblock project_tree %}
@@ -197,12 +186,12 @@ link(href="{{ url_for('static_pillar', filename='assets/css/project-main.css') }
#project_context-container.border-left #project_context-container.border-left
| {% if project.has_method('PUT') %} | {% if project.has_method('PUT') %}
#project_context-header.bg-white #project_context-header.d-flex.justify-content-end.position-fixed.bg-white
span#status-bar ul.project-edit-tools.disabled.d-flex.list-unstyled.p-2.mb-0
ul.project-edit-tools.disabled
li.dropdown li.dropdown
button#item_add.project-mode-view.btn.btn-sm.btn-outline-secondary.dropdown-toggle( button.btn.btn-sm.btn-outline-secondary.dropdown-toggle(
id="item_add",
class="project-mode-view",
type="button", type="button",
data-toggle="dropdown", data-toggle="dropdown",
aria-haspopup="true", aria-haspopup="true",
@@ -214,7 +203,9 @@ link(href="{{ url_for('static_pillar', filename='assets/css/project-main.css') }
| {{ add_new_menu(project.node_types) }} | {{ add_new_menu(project.node_types) }}
li.button-edit li.button-edit
a#item_edit.project-mode-view.btn.btn-sm.btn-outline-secondary.ml-2( a.btn.btn-sm.btn-outline-secondary.ml-2(
id="item_edit",
class="project-mode-view",
href="javascript:void(0);", href="javascript:void(0);",
title="Edit", title="Edit",
data-project_id="{{project._id}}") data-project_id="{{project._id}}")