From 99ddad0f92e2740ded228829a764b469e2546e55 Mon Sep 17 00:00:00 2001 From: Matt Webb Date: Fri, 26 Sep 2014 20:19:14 +0100 Subject: [PATCH] adding a basic page to navigate devices --- app/main/__init__.py | 4 +--- app/templates/dump.html | 12 ++++++++++++ app/templates/index.html | 7 +++++++ 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 app/templates/dump.html diff --git a/app/main/__init__.py b/app/main/__init__.py index 7a2645c..5ffa889 100644 --- a/app/main/__init__.py +++ b/app/main/__init__.py @@ -8,9 +8,7 @@ main = Blueprint('main', __name__) @main.route('/') def index(): - devices = [] - - + devices = Device.query.all() return render_template('index.html', devices=devices) diff --git a/app/templates/dump.html b/app/templates/dump.html new file mode 100644 index 0000000..3d8d11d --- /dev/null +++ b/app/templates/dump.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} + +{% block title %}Sirius - Dump{% endblock %} + +{% block page_content %} +

Dump page

+ +
+{{ dump }}
+
+ +{% endblock %} \ No newline at end of file diff --git a/app/templates/index.html b/app/templates/index.html index 5c33eac..b5f7697 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -4,4 +4,11 @@ {% block page_content %}

Hello, World!

+ + + {% endblock %} \ No newline at end of file -- 2.47.3