From 46007134ac027469306a087140fc5a0cdb096095 Mon Sep 17 00:00:00 2001 From: marwolaethblack Date: Mon, 4 Dec 2017 12:58:48 +0100 Subject: style page --- app/Resources/views/base.html.twig | 14 +++++++ app/Resources/views/default/AllDataPage.html.twig | 49 +++++++++++------------ app/Resources/views/default/index.html.twig | 43 +++++++++++--------- 3 files changed, 63 insertions(+), 43 deletions(-) (limited to 'app') diff --git a/app/Resources/views/base.html.twig b/app/Resources/views/base.html.twig index bafd28d..3f93ff8 100644 --- a/app/Resources/views/base.html.twig +++ b/app/Resources/views/base.html.twig @@ -5,9 +5,23 @@ {% block title %}Welcome!{% endblock %} {% block stylesheets %}{% endblock %} + + +
{% block body %}{% endblock %} +
{% block javascripts %}{% endblock %} diff --git a/app/Resources/views/default/AllDataPage.html.twig b/app/Resources/views/default/AllDataPage.html.twig index 429e13e..4607049 100644 --- a/app/Resources/views/default/AllDataPage.html.twig +++ b/app/Resources/views/default/AllDataPage.html.twig @@ -1,30 +1,29 @@ - - - - - All Pollution Data | Pollutometer - - - - - - - - - - - - {% for table in data %} - - - - - +{% extends 'base.html.twig' %} + +{% block body %} +
TimeStampCoNoSo
{{ table.TimeStamp }}{{ table.Co }}{{ table.No }}{{ table.So }}
+ + + + + + + + + + + {% for table in data %} + + + + + + {% endfor %}
TimeStampCoNoSo
{{ table.TimeStamp }}{{ table.Co }}{{ table.No }}{{ table.So }}
- +{% endblock %} {% block javascripts %} + \ No newline at end of file +{% endblock %} \ No newline at end of file diff --git a/app/Resources/views/default/index.html.twig b/app/Resources/views/default/index.html.twig index 705044b..176f519 100644 --- a/app/Resources/views/default/index.html.twig +++ b/app/Resources/views/default/index.html.twig @@ -1,26 +1,33 @@ {% extends 'base.html.twig' %} {% block body %} -
- - - - - - - - - - - - - -
TimeStampCoNoSo
{{ TimeStamp }}{{ Co }}{{ No }}{{ So }}
+
+
+ + + + + + + + + + + + + + + + + +
TimeStampCoNoSo
{{ TimeStamp }}{{ Co }}{{ No }}{{ So }}
+

The current air quality index is {{ Aqi }}

+
+
+ +
- All Data Page -

The current air quality index is {{ Aqi }}

- {% endblock %} {% block javascripts %} -- cgit v1.2.3