diff --git a/realms/commands.py b/realms/commands.py index 766a1d3..5a140bd 100644 --- a/realms/commands.py +++ b/realms/commands.py @@ -13,6 +13,7 @@ import subprocess # called to discover commands in modules app = create_app() + def get_user(): for name in ('SUDO_USER', 'LOGNAME', 'USER', 'LNAME', 'USERNAME'): user = os.environ.get(name) @@ -163,6 +164,7 @@ def setup_redis(ctx, **kw): config.update(conf) install_redis() + @click.command() @click.option('--elasticsearch-url', default=getattr(config, 'ELASTICSEARCH_URL', 'http://127.0.0.1:9200'), diff --git a/realms/modules/wiki/views.py b/realms/modules/wiki/views.py index 7c02c0a..422af13 100644 --- a/realms/modules/wiki/views.py +++ b/realms/modules/wiki/views.py @@ -137,7 +137,6 @@ def _tree_index(items, path=""): dir=True) - @blueprint.route("/_index", defaults={"path": ""}) @blueprint.route("/_index/") def index(path): diff --git a/realms/templates/wiki/edit.html b/realms/templates/wiki/edit.html index e43bd8d..398cbae 100644 --- a/realms/templates/wiki/edit.html +++ b/realms/templates/wiki/edit.html @@ -132,7 +132,6 @@
- {% if name in config['WIKI_LOCKED_PAGES'] %} diff --git a/realms/templates/wiki/index.html b/realms/templates/wiki/index.html index ad6ea8c..ad30786 100644 --- a/realms/templates/wiki/index.html +++ b/realms/templates/wiki/index.html @@ -3,7 +3,7 @@ {% block js %} {% endblock %}