diff --git a/attract/__init__.py b/attract/__init__.py index a93f0dd..c31172c 100644 --- a/attract/__init__.py +++ b/attract/__init__.py @@ -1,6 +1,5 @@ from pillar.extension import PillarExtension -from .modules import blueprint from . import task_manager @@ -55,7 +54,10 @@ class AttractExtension(PillarExtension): :rtype: list of flask.Blueprint objects. """ - return [blueprint] + + from . import modules, tasks + + return [modules.blueprint, tasks.blueprint] @property def template_path(self): diff --git a/attract/tasks.py b/attract/tasks.py new file mode 100644 index 0000000..fe96fc2 --- /dev/null +++ b/attract/tasks.py @@ -0,0 +1,11 @@ +import logging + +from flask import Blueprint, render_template + +blueprint = Blueprint('attract.tasks', __name__, url_prefix='/tasks') +log = logging.getLogger(__name__) + + +@blueprint.route('/') +def index(): + return render_template('attract/tasks/index.html') diff --git a/src/templates/attract/index.jade b/src/templates/attract/index.jade index d80866f..90461b1 100644 --- a/src/templates/attract/index.jade +++ b/src/templates/attract/index.jade @@ -1,6 +1,27 @@ -| {% extends 'layout.html' %} +| {% extends 'attract/layout.html' %} | {% block page_title %}Attract{% endblock %} | {% block body %} -h1 Attract -p This is Attract. Templates are found. +#page-container + #page-header + .page-title-icons + i.pi-blender-cloud + i.pi-heart-filled + i.pi-users + .page-title + | Attract + .page-title-summary + | Manage your film project. This is about people. + + #page-content + .page-triplet-container.homepage + .row + .col-md-4 + h2 The edit + p one column + .col-md-4 + h2 Tasks + a(href="{{ url_for('attract.tasks.index') }}") Go to task manager + .col-md-4 + h2 Other stuff + p three column | {% endblock %} diff --git a/src/templates/attract/layout.jade b/src/templates/attract/layout.jade new file mode 100644 index 0000000..904463f --- /dev/null +++ b/src/templates/attract/layout.jade @@ -0,0 +1 @@ +| {% extends 'layout.html' %} diff --git a/src/templates/attract/tasks/index.jade b/src/templates/attract/tasks/index.jade new file mode 100644 index 0000000..9a86b0b --- /dev/null +++ b/src/templates/attract/tasks/index.jade @@ -0,0 +1,21 @@ +| {% extends 'attract/layout.html' %} +| {% block page_title %}Attract{% endblock %} +| {% block body %} +#page-container + #page-header + .page-title + | Attract - tasks + + #page-content + .page-triplet-container.homepage + .row + .col-md-4 + h2 The edit + p one column + .col-md-4 + h2 Tasks + a(href="{{ url_for('attract.tasks.index') }}") Go to task manager + .col-md-4 + h2 Other stuff + p three column +| {% endblock %}