Add the accounts page placeholder
This proves out that my navigation works the way that I want and that my auto context variables are working. Currently we don't do much but say they have no accounts, but we can build that up over time
This commit is contained in:
parent
e1f39bb852
commit
0aecabea75
|
@ -0,0 +1,7 @@
|
||||||
|
{% extends 'layout.html' %}
|
||||||
|
{% block main_content %}
|
||||||
|
<h1>Accounts</h1>
|
||||||
|
{% if not accounts %}
|
||||||
|
<p>You don't have any accounts yet. Let's create some</p>
|
||||||
|
{% endif %}
|
||||||
|
{% endblock %}
|
|
@ -0,0 +1,8 @@
|
||||||
|
import flask
|
||||||
|
|
||||||
|
blueprint = flask.Blueprint('accounts', __name__)
|
||||||
|
|
||||||
|
@blueprint.route('/accounts/')
|
||||||
|
def accounts():
|
||||||
|
my_accounts = []
|
||||||
|
return flask.render_template('accounts.html', accounts=my_accounts)
|
|
@ -5,6 +5,7 @@ import flask_login
|
||||||
import flask_uuid
|
import flask_uuid
|
||||||
|
|
||||||
import vanth.auth
|
import vanth.auth
|
||||||
|
import vanth.pages.accounts
|
||||||
import vanth.pages.index
|
import vanth.pages.index
|
||||||
|
|
||||||
LOGGER = logging.getLogger(__name__)
|
LOGGER = logging.getLogger(__name__)
|
||||||
|
@ -29,6 +30,7 @@ def create_app(config):
|
||||||
SESSION_COOKIE_DOMAIN = config.session_cookie_domain,
|
SESSION_COOKIE_DOMAIN = config.session_cookie_domain,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
app.register_blueprint(vanth.pages.accounts.blueprint)
|
||||||
app.register_blueprint(vanth.pages.index.blueprint)
|
app.register_blueprint(vanth.pages.index.blueprint)
|
||||||
app.register_blueprint(vanth.auth.blueprint)
|
app.register_blueprint(vanth.auth.blueprint)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue