From 82d45ea0ce1fbc90cce35aaa46650074fe6b8112 Mon Sep 17 00:00:00 2001 From: William Peebles Date: Sat, 12 Nov 2022 19:50:10 -0500 Subject: [PATCH] add some styling --- app.py | 5 ++-- templates/base.html | 67 ++++++++++++++++++-------------------------- templates/index.html | 13 ++++----- templates/task.html | 18 ++++++++---- 4 files changed, 49 insertions(+), 54 deletions(-) diff --git a/app.py b/app.py index d407ad0..85207db 100644 --- a/app.py +++ b/app.py @@ -1,4 +1,5 @@ import os +from datetime import datetime from flask import Flask, render_template, request, redirect, url_for from flask_sqlalchemy import SQLAlchemy @@ -45,9 +46,9 @@ class Event(db.Model): @app.route('/') def index(): events = Event.query.all() - return render_template('index.html', events=events) + return render_template('index.html', events=events, datetime=datetime) @app.route('/task//') def task(task_id): task = Task.query.get_or_404(task_id) - return render_template('task.html', task=task) \ No newline at end of file + return render_template('task.html', task=task, datetime=datetime) \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index 9cd0b24..6e2e187 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,52 +1,41 @@ - + + + + + + {% block title %} {% endblock %} - BellScheduler - -