Skip to content

Commit

Permalink
Merge pull request #105 from nsidc/display_version
Browse files Browse the repository at this point in the history
Display version on web page
  • Loading branch information
rmarow authored Aug 18, 2023
2 parents 48ba5dd + ce723f8 commit 93dc308
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion usaon_vta_survey/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

db.init_app(app)

app.jinja_env.globals.update(sqla_inspect=sqla_inspect)
app.jinja_env.globals.update(sqla_inspect=sqla_inspect, __version__=__version__)

# NOTE: This is a circular import, but it's specified by the Flask docs:
# https://flask.palletsprojects.com/en/3.1.x/patterns/packages/
Expand Down
3 changes: 3 additions & 0 deletions usaon_vta_survey/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@ <h3>Please login to use this application.</h3>
{% endif %}

</section>
<footer>
<p>Version: v{{ __version__ }}</p>
</footer>

</body>

0 comments on commit 93dc308

Please sign in to comment.