diff --git a/app/routes.py b/app/routes.py index c1d4a11..180c472 100644 --- a/app/routes.py +++ b/app/routes.py @@ -597,7 +597,14 @@ def register(): return redirect(url_for('login')) return render_template('register.html', title='Register', registrations=REGISTRATIONS, form=form, config=config) - + +@app.route('/registrations_status') +def registrations_status(): + count = db.session.query(User).count() + if count >= config['maxInstanceUsers'] or config['maxInstanceUsers'] == 0: + return url_for('static',filename='img/close.png') + else: + return url_for('static',filename='img/open.png') @app.route('/error/') def error(errno): diff --git a/app/static/img/close.png b/app/static/img/close.png new file mode 100644 index 0000000..82fe0c0 Binary files /dev/null and b/app/static/img/close.png differ diff --git a/app/static/img/open.png b/app/static/img/open.png new file mode 100644 index 0000000..30bee63 Binary files /dev/null and b/app/static/img/open.png differ