mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
help: Use freedombox package instead of plinth for version
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
7f04088ddd
commit
62b4f67a2e
@ -54,11 +54,11 @@ def index(request):
|
|||||||
def about(request):
|
def about(request):
|
||||||
"""Serve the about page"""
|
"""Serve the about page"""
|
||||||
cache = Cache()
|
cache = Cache()
|
||||||
plinth = cache['plinth']
|
freedombox = cache['freedombox']
|
||||||
context = {
|
context = {
|
||||||
'title': _('About {box_name}').format(box_name=_(cfg.box_name)),
|
'title': _('About {box_name}').format(box_name=_(cfg.box_name)),
|
||||||
'version': __version__,
|
'version': __version__,
|
||||||
'new_version': not plinth.candidate.is_installed,
|
'new_version': not freedombox.candidate.is_installed,
|
||||||
'os_release': get_os_release()
|
'os_release': get_os_release()
|
||||||
}
|
}
|
||||||
return TemplateResponse(request, 'help_about.html', context)
|
return TemplateResponse(request, 'help_about.html', context)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user