help: Use freedombox package instead of plinth for version

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Prachi Srivastava authored and Sunil Mohan Adapa committed 2019-01-30 23:10:08 -08:00
1 parent 7f04088ddd
commit 62b4f67a2e
1 file changed
+2 -2
+2 -2
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)