Use mixin components from Pillar
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
include ../mixins/components
|
include ../../../../pillar/src/templates/mixins/components
|
||||||
|
|
||||||
| {% macro navigation_tabs(title) %}
|
| {% macro navigation_tabs(title) %}
|
||||||
+nav-secondary()
|
+nav-secondary()
|
||||||
|
@@ -1,69 +0,0 @@
|
|||||||
// {#
|
|
||||||
// Header of landing pages. title or text can be skipped:
|
|
||||||
// +jumbotron("{{ page_title }}", null, "{{ page_header_image }}")
|
|
||||||
// Any extra attributes added (in a separate group) will be passed as is:
|
|
||||||
// +jumbotron("{{ page_title }}", null, "{{ page_header_image }}")(data-node-id='{{ node._id }}')
|
|
||||||
// #}
|
|
||||||
mixin jumbotron(title, text, image, url)
|
|
||||||
if url
|
|
||||||
a.jumbotron.jumbotron-overlay.text-white(
|
|
||||||
style='background-image: url(' + image + ');',
|
|
||||||
href=url)&attributes(attributes)
|
|
||||||
.container
|
|
||||||
.row
|
|
||||||
.col-md-9
|
|
||||||
if title
|
|
||||||
.display-4.text-uppercase.font-weight-bold
|
|
||||||
=title
|
|
||||||
if text
|
|
||||||
.lead
|
|
||||||
=text
|
|
||||||
else
|
|
||||||
.jumbotron.jumbotron-overlay.text-white(style='background-image: url(' + image + ');')&attributes(attributes)
|
|
||||||
.container
|
|
||||||
.row
|
|
||||||
.col-md-9
|
|
||||||
if title
|
|
||||||
.display-4.text-uppercase.font-weight-bold
|
|
||||||
=title
|
|
||||||
if text
|
|
||||||
.lead
|
|
||||||
=text
|
|
||||||
|
|
||||||
// {# Secondary navigation.
|
|
||||||
// e.g. Workshops, Courses. #}
|
|
||||||
mixin nav-secondary(title)
|
|
||||||
ul.nav.nav-secondary&attributes(attributes)
|
|
||||||
if title
|
|
||||||
li.font-weight-bold.px-2
|
|
||||||
=title
|
|
||||||
|
|
||||||
if block
|
|
||||||
block
|
|
||||||
else
|
|
||||||
p No items defined.
|
|
||||||
|
|
||||||
mixin nav-secondary-link()
|
|
||||||
li.nav-item
|
|
||||||
a.nav-link&attributes(attributes)
|
|
||||||
block
|
|
||||||
|
|
||||||
// {# Takes as argument the number of columns to use in this deck. 1-6 #}
|
|
||||||
mixin card-deck(columns)
|
|
||||||
.card-deck.card-padless(class='card-' + columns + '-columns')
|
|
||||||
if block
|
|
||||||
block
|
|
||||||
else
|
|
||||||
p No cards defined.
|
|
||||||
|
|
||||||
// {#
|
|
||||||
// Passes all attributes to the card.
|
|
||||||
// You can do fun stuff in a loop even like:
|
|
||||||
// +card(data-url="{{ url_for('projects.view', project_url=project.url) }}", tabindex='{{ loop.index }}')
|
|
||||||
// #}
|
|
||||||
mixin card()
|
|
||||||
.card.card-fade.cursor-pointer.mb-4.js-project-go&attributes(attributes)
|
|
||||||
if block
|
|
||||||
block
|
|
||||||
else
|
|
||||||
p No card content defined.
|
|
@@ -1,4 +1,4 @@
|
|||||||
include ../../../mixins/components
|
include ../../../../../../pillar/src/templates/mixins/components
|
||||||
|
|
||||||
| {% import 'projects/_macros.html' as projectmacros %}
|
| {% import 'projects/_macros.html' as projectmacros %}
|
||||||
| {% macro render_blog_post(node, project=None, pages=None) %}
|
| {% macro render_blog_post(node, project=None, pages=None) %}
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
| {% extends 'layout.html' %}
|
| {% extends 'layout.html' %}
|
||||||
| {% from '_macros/_navigation.html' import navigation_tabs %}
|
| {% from '_macros/_navigation.html' import navigation_tabs %}
|
||||||
include ../mixins/components
|
include ../../../../pillar/src/templates/mixins/components
|
||||||
|
|
||||||
| {% set title = 'organizations' %}
|
| {% set title = 'organizations' %}
|
||||||
| {% block page_title %}Organizations{% endblock %}
|
| {% block page_title %}Organizations{% endblock %}
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
| {% extends 'layout.html' %}
|
| {% extends 'layout.html' %}
|
||||||
| {% from '_macros/_navigation.html' import navigation_tabs %}
|
| {% from '_macros/_navigation.html' import navigation_tabs %}
|
||||||
include ../mixins/components
|
include ../../../../pillar/src/templates/mixins/components
|
||||||
|
|
||||||
| {% set title = 'home' %}
|
| {% set title = 'home' %}
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
| {% extends 'layout.html' %}
|
| {% extends 'layout.html' %}
|
||||||
| {% from '_macros/_navigation.html' import navigation_tabs %}
|
| {% from '_macros/_navigation.html' import navigation_tabs %}
|
||||||
include ../mixins/components
|
include ../../../../pillar/src/templates/mixins/components
|
||||||
|
|
||||||
| {% set title = 'dashboard' %}
|
| {% set title = 'dashboard' %}
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
| {% extends 'layout.html' %}
|
| {% extends 'layout.html' %}
|
||||||
| {% from '_macros/_add_new_menu.html' import add_new_menu %}
|
| {% from '_macros/_add_new_menu.html' import add_new_menu %}
|
||||||
include ../mixins/components
|
include ../../../../pillar/src/templates/mixins/components
|
||||||
|
|
||||||
| {% block page_title %}{{ project.name }}{% endblock%}
|
| {% block page_title %}{{ project.name }}{% endblock%}
|
||||||
| {% set title = 'project' %}
|
| {% set title = 'project' %}
|
||||||
@@ -189,7 +189,8 @@ link(href="{{ url_for('static_pillar', filename='assets/css/project-main.css') }
|
|||||||
i.button-add-icon.pi-collection-plus
|
i.button-add-icon.pi-collection-plus
|
||||||
| New...
|
| New...
|
||||||
|
|
||||||
ul.dropdown-menu.add_new-menu
|
ul.dropdown-menu.dropdown-menu-right(
|
||||||
|
class="add_new-menu")
|
||||||
| {{ add_new_menu(project.node_types) }}
|
| {{ add_new_menu(project.node_types) }}
|
||||||
|
|
||||||
li.button-edit
|
li.button-edit
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
| {% extends 'layout.html' %}
|
| {% extends 'layout.html' %}
|
||||||
|
|
||||||
include mixins/components
|
include ../../../pillar/src/templates/mixins/components
|
||||||
|
|
||||||
| {# Default case is Open Projects #}
|
| {# Default case is Open Projects #}
|
||||||
| {% set page_title = 'Open Projects' %}
|
| {% set page_title = 'Open Projects' %}
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
| {% extends 'layout.html' %}
|
| {% extends 'layout.html' %}
|
||||||
| {% block page_title %}Services{% endblock %}
|
| {% block page_title %}Services{% endblock %}
|
||||||
| {% set title = 'services' %}
|
| {% set title = 'services' %}
|
||||||
include mixins/components
|
include ../../../pillar/src/templates/mixins/components
|
||||||
|
|
||||||
| {% block og %}
|
| {% block og %}
|
||||||
meta(property="og:type", content="website")
|
meta(property="og:type", content="website")
|
||||||
|
Reference in New Issue
Block a user