Add version number to the footer and set the version to "0.1.0"

This commit is contained in:
Carsten Grohmann 2017-11-27 21:05:31 +01:00
parent 007f425267
commit 044a152f28
2 changed files with 6 additions and 1 deletions

View File

@ -450,7 +450,7 @@ function goBack() {
<hr/> <hr/>
<div class="footer"> <div class="footer">
OOMAnalyser | OOMAnalyser <span id="version"></span> |
Copyright (C) 2017 Carsten Grohmann | Copyright (C) 2017 Carsten Grohmann |
<a href="javascript:void(0);" onclick="OOMAnalyser.toggle('license')" title="Show / hide license text">License: MIT</a> | <a href="javascript:void(0);" onclick="OOMAnalyser.toggle('license')" title="Show / hide license text">License: MIT</a> |
<a href="https://github.com/CarstenGrohmann/OOMAnalyser" title="Source code on GitHub">Source Code on GitHub</a> <a href="https://github.com/CarstenGrohmann/OOMAnalyser" title="Source code on GitHub">Source Code on GitHub</a>

View File

@ -10,6 +10,8 @@ import re
DEBUG=False DEBUG=False
"""Show additional information during the development cycle""" """Show additional information during the development cycle"""
VERSION="0.1"
"""Version number"""
def hide_element(element_id): def hide_element(element_id):
"""Hide the given HTML element""" """Hide the given HTML element"""
@ -396,6 +398,9 @@ Killed process 6576 (java) total-vm:33914892kB, anon-rss:20629004kB, file-rss:0k
def __init__(self): def __init__(self):
self._set_defaults() self._set_defaults()
element = document.getElementById('version')
element.textContent = "v{}".format(VERSION)
def _set_single_item(self, item): def _set_single_item(self, item):
""" """
Set content of a single item to the HTML element with the same name. Set content of a single item to the HTML element with the same name.