From 245377b17a0d7e16a801b5ec3d487e59d737a818 Mon Sep 17 00:00:00 2001 From: nukeop Date: Mon, 2 Jan 2017 15:05:25 +0100 Subject: [PATCH] Move brand names to g, basic queue page --- smash/__init__.py | 2 +- smash/templates/base.html | 7 +++++-- smash/templates/login.html | 2 +- smash/templates/queue.html | 23 ++++++++++++++++++++++ smash/templates/tags.html | 2 +- smash/views.py | 40 ++++++++++++++++++++++---------------- 6 files changed, 54 insertions(+), 22 deletions(-) create mode 100644 smash/templates/queue.html diff --git a/smash/__init__.py b/smash/__init__.py index 365b271..3d9a9b1 100644 --- a/smash/__init__.py +++ b/smash/__init__.py @@ -1,5 +1,5 @@ import os -from flask import Flask +from flask import Flask, g from flask.ext.sqlalchemy import SQLAlchemy from . import config, log diff --git a/smash/templates/base.html b/smash/templates/base.html index ff6a754..acf7e98 100644 --- a/smash/templates/base.html +++ b/smash/templates/base.html @@ -12,7 +12,7 @@ {% endblock %} {% if title %} - {{ title }} - {{ appname }} + {{ title }} - {{ g.appname }} {% endif %} @@ -20,7 +20,7 @@