Add latest update date to /status
This commit is contained in:
parent
39dafeaade
commit
4b098d7f52
@ -776,8 +776,9 @@ def status():
|
|||||||
caniregister = True
|
caniregister = True
|
||||||
|
|
||||||
version = subprocess.check_output(["git", "rev-parse", "--short", "HEAD"]).strip()
|
version = subprocess.check_output(["git", "rev-parse", "--short", "HEAD"]).strip()
|
||||||
|
update = subprocess.check_output(["git", "log", "-1", "--format=%cd"]).strip()
|
||||||
return render_template('status.html', title='STATUS', count=count, max=config['maxInstanceUsers'], file=filen,
|
return render_template('status.html', title='STATUS', count=count, max=config['maxInstanceUsers'], file=filen,
|
||||||
cani=caniregister, version=str(version)[2:-1])
|
cani=caniregister, version=str(version)[2:-1], update=str(update)[2:-1])
|
||||||
|
|
||||||
|
|
||||||
@app.route('/error/<errno>')
|
@app.route('/error/<errno>')
|
||||||
|
@ -47,6 +47,7 @@
|
|||||||
<div class="ui segments">
|
<div class="ui segments">
|
||||||
<div class="ui segment">
|
<div class="ui segment">
|
||||||
<p>Yotter version: <b><a href="https://github.com/ytorg/Yotter/commits/dev-indep">{{version}}</a></b></p>
|
<p>Yotter version: <b><a href="https://github.com/ytorg/Yotter/commits/dev-indep">{{version}}</a></b></p>
|
||||||
|
<p>Latest update: <b><a href="https://github.com/ytorg/Yotter/commits/dev-indep">{{update}}</a></b></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user