From 7719d4d9c1502f06f8245dff44566d827237d1e1 Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Mon, 16 Nov 2020 17:13:10 +0100 Subject: [PATCH] Move Agora version to config.py. --- app/agora.py | 2 +- app/config.py | 1 + app/templates/index.html | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/agora.py b/app/agora.py index b2c3323..b4516aa 100644 --- a/app/agora.py +++ b/app/agora.py @@ -23,7 +23,7 @@ bp = Blueprint('agora', __name__) @bp.route('/') def index(): - return render_template('index.html', help=url_for('agora.help'), nodes=url_for('agora.nodes'), subnodes=url_for('agora.subnodes'), users=url_for('agora.users'), journals=url_for('agora.journals'), search=url_for('agora.search')) + return render_template('index.html', version=config.AGORA_VERSION, help=url_for('agora.help'), nodes=url_for('agora.nodes'), subnodes=url_for('agora.subnodes'), users=url_for('agora.users'), journals=url_for('agora.journals'), search=url_for('agora.search')) @bp.route('/help') def help(): diff --git a/app/config.py b/app/config.py index 257c0c9..fae8fbb 100644 --- a/app/config.py +++ b/app/config.py @@ -2,6 +2,7 @@ import os import getpass AGORA_PATH = os.path.join('/home', getpass.getuser(), 'agora') +AGORA_VERSION = '0.5.2' # With trailing slash. URL_BASE = "https://anagora.org/" diff --git a/app/templates/index.html b/app/templates/index.html index 33c35fc..9bb1acc 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -18,7 +18,7 @@ {% block content %} Ahoy, matey!

-This is the Agora v0.5.1.
+This is the Agora v{{version}}.

This site is very much under construction, but feel free to look around: