Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
### Added
- GUI -> Settings: Add display of network interface mac address.
- GUI -> Settings: Add Tcp host addr entry to open or block external access to the Gnss receiver. [#490](https://github.com/Stefal/rtkbase/issues/490)
- GUI ->: Add mount name in the web page title. Thanks to @sbonaime [#484](https://github.com/Stefal/rtkbase/issues/484)
### Changed
- RTKLib upgraded to release v2.5.0-EX.
- Add Galileo inside rinex preset for Nrcan. [#479](https://github.com/Stefal/rtkbase/issues/479)
Expand Down
5 changes: 3 additions & 2 deletions web_app/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,11 +394,12 @@ def download_update(update_path):
return update_archive

@app.before_request
def inject_release():
def inject_global_infos():
"""
Insert the RTKBase release number as a global variable for Flask/Jinja
Insert various informations as global variables for Flask/Jinja
"""
g.version = rtkbaseconfig.get("general", "version")
g.station_name = rtkbaseconfig.get_ntrip_A_settings()[4]['mnt_name_A']
g.sbc_model = get_sbc_model()

@login.user_loader
Expand Down
2 changes: 1 addition & 1 deletion web_app/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<link rel="stylesheet" href="{{ url_for('static', filename='lib/bootstrap-4.6.1.min.css') }}">
{% endblock %}

<title>RTKBase</title>
<title>{{ g.station_name }} - RTKBase </title>
{% endblock %}
</head>
<body style="min-height: 100vh; display:flex; flex-direction: column;">
Expand Down
Loading