18 lines
588 B
Python
18 lines
588 B
Python
from flask import Blueprint, render_template, redirect, url_for, flash
|
|
from jinja2_fragments import render_block
|
|
from werkzeug.security import generate_password_hash, check_password_hash
|
|
from flask_login import login_user, login_required, logout_user
|
|
from extensions import db, htmx, environment
|
|
|
|
timer = Blueprint('timer', __name__)
|
|
|
|
@timer.route('/overview')
|
|
@login_required
|
|
def overview():
|
|
|
|
if htmx:
|
|
return render_block(environment, 'dashboard/timer_functions/overview.html', 'page')
|
|
return render_template('dashboard/timer_functions/overview.html')
|
|
|
|
|