diff --git a/app.py b/app.py index dc04398..608b602 100755 --- a/app.py +++ b/app.py @@ -668,13 +668,15 @@ def filter_build_options_by_category(build_options, category): def parse_build_categories(build_options): return sorted(list(set([f.category for f in build_options]))) +GIT_VERSION_SHORT = get_git_hash('HEAD', os.path.abspath(os.getcwd()))[:10] + @app.route('/', defaults={'token': None}, methods=['GET']) @app.route('/', methods=['GET']) def home(token): if token: app.logger.info("Showing log for build id " + token) app.logger.info('Rendering index.html') - return render_template('index.html', token=token) + return render_template('index.html', token=token, app_git_version=GIT_VERSION_SHORT) @app.route("/builds/") def download_file(name): diff --git a/templates/index.html b/templates/index.html index 92c89ac..c22ee62 100644 --- a/templates/index.html +++ b/templates/index.html @@ -64,10 +64,13 @@ | Source: Ardupilot/CustomBuild + | + Git Version: + {{ app_git_version }} - To try out the newest features of the app, please visit our beta server - custom-beta.ardupilot.org + To try out the newest features of the app, please visit our + beta server