Event {{e.eid}}
-{{ e }}-
Actions
--
- {% for a in actions %}
-
{{ a }}
- {% endfor %}
-
diff --git a/.gitignore b/.gitignore index 9f06617..b796648 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ larigira.db larigira.db_* *.json .coverage +*.db diff --git a/larigira/config.py b/larigira/config.py index de64206..3ae9425 100644 --- a/larigira/config.py +++ b/larigira/config.py @@ -15,6 +15,7 @@ def get_conf(prefix='LARIGIRA_'): conf['MPD_PORT'] = int(os.getenv('MPD_PORT', '6600')) conf['CACHING_TIME'] = 10 conf['DB_URI'] = 'larigira.db' + conf['BOOTSTRAP_SERVE_LOCAL'] = True conf.update(from_envvars(prefix=prefix)) return conf diff --git a/larigira/dbadmin/__init__.py b/larigira/dbadmin/__init__.py index 250cc7b..d179942 100644 --- a/larigira/dbadmin/__init__.py +++ b/larigira/dbadmin/__init__.py @@ -1,3 +1,8 @@ +''' +This module contains a flask blueprint for db administration stuff + +Templates are self-contained in this directory +''' from __future__ import print_function from flask import current_app, Blueprint, render_template diff --git a/larigira/dbadmin/templates/dbadmin_base.html b/larigira/dbadmin/templates/dbadmin_base.html new file mode 100644 index 0000000..41a3c51 --- /dev/null +++ b/larigira/dbadmin/templates/dbadmin_base.html @@ -0,0 +1,54 @@ +{% extends "bootstrap/base.html" %} +{% block title %}Larigira{% endblock title %} +{% block navbar %} + +{% endblock %} + +{% macro dict_table(obj, exclude_list=[]) %} +
Key | +Value | +
---|---|
{{key}} | +{{obj[key]}} | +
{{ e }}-
{{ a }}