Skip to content

Commit

Permalink
show version in footer
Browse files Browse the repository at this point in the history
  • Loading branch information
bdzim committed May 23, 2014
1 parent fbd7a29 commit fedd9d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions django/apps/blue_management/blue_mgnt/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ <h1>
<li><a href="https://spideroak.com/about/">About</a></li>
<li><a href="https://spideroak.com/privacy_policy">Privacy Policy</a></li>
<li><a href="https://spideroak.com/terms_of_use">Terms of Use</a></li>
<li>{{ account_info.version }}</li>
</ul>
<div class="spacer"><!--ZKP--></div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions django/apps/blue_management/blue_mgnt/views/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fedd9d5

Please sign in to comment.