Move Agora version to config.py.

This commit is contained in:
Flancian 2020-11-16 17:13:10 +01:00
parent 13bfd42914
commit 7719d4d9c1
3 changed files with 3 additions and 2 deletions

View file

@ -23,7 +23,7 @@ bp = Blueprint('agora', __name__)
@bp.route('/') @bp.route('/')
def index(): 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') @bp.route('/help')
def help(): def help():

View file

@ -2,6 +2,7 @@ import os
import getpass import getpass
AGORA_PATH = os.path.join('/home', getpass.getuser(), 'agora') AGORA_PATH = os.path.join('/home', getpass.getuser(), 'agora')
AGORA_VERSION = '0.5.2'
# With trailing slash. # With trailing slash.
URL_BASE = "https://anagora.org/" URL_BASE = "https://anagora.org/"

View file

@ -18,7 +18,7 @@
{% block content %} {% block content %}
Ahoy, matey!<br /> Ahoy, matey!<br />
<br /> <br />
This is the <strong>Agora v0.5.1</strong>.<br /> This is the <strong>Agora v{{version}}</strong>.<br />
<br /> <br />
This site is very much under construction, but feel free to look around: This site is very much under construction, but feel free to look around:
<ul> <ul>