help: Use freedombox package instead of plinth for version

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Prachi Srivastava 2019-01-31 12:25:01 +05:30 committed by Sunil Mohan Adapa
parent 7f04088ddd
commit 62b4f67a2e
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -54,11 +54,11 @@ def index(request):
def about(request):
"""Serve the about page"""
cache = Cache()
plinth = cache['plinth']
freedombox = cache['freedombox']
context = {
'title': _('About {box_name}').format(box_name=_(cfg.box_name)),
'version': __version__,
'new_version': not plinth.candidate.is_installed,
'new_version': not freedombox.candidate.is_installed,
'os_release': get_os_release()
}
return TemplateResponse(request, 'help_about.html', context)