diff --git a/django/apps/blue_management/blue_mgnt/templates/base.html b/django/apps/blue_management/blue_mgnt/templates/base.html index 41b491a..8b7fa34 100644 --- a/django/apps/blue_management/blue_mgnt/templates/base.html +++ b/django/apps/blue_management/blue_mgnt/templates/base.html @@ -84,6 +84,7 @@

  • About
  • Privacy Policy
  • Terms of Use
  • +
  • {{ account_info.version }}
  • diff --git a/django/apps/blue_management/blue_mgnt/views/views.py b/django/apps/blue_management/blue_mgnt/views/views.py index d7436c7..4a63d4a 100644 --- a/django/apps/blue_management/blue_mgnt/views/views.py +++ b/django/apps/blue_management/blue_mgnt/views/views.py @@ -418,6 +418,9 @@ def new_fun(request, *args, **kwargs): account_info['total_groups'] = len(config['groups']) account_info['total_auth_codes'] = models.AdminSetupTokensUse.objects.count() account_info['api_user'] = config['api_user'] + + with open('/opt/openmanage/etc/OpenManage_version.txt') as f: + account_info['version'] = f.readlines()[0] return fun(request, api, account_info, config, request.session['username'], *args, **kwargs) return new_fun