mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
Display Plinth version in Documentation / About
Users should see which Plinth version they use to make it easier to report and reproduce bugs
This commit is contained in:
parent
ef2bf32668
commit
38ec7666ed
@ -20,7 +20,7 @@ from gettext import gettext as _
|
||||
from django.http import Http404
|
||||
from django.template.response import TemplateResponse
|
||||
|
||||
from plinth import cfg
|
||||
from plinth import cfg, __version__
|
||||
|
||||
|
||||
def init():
|
||||
@ -46,8 +46,11 @@ def index(request):
|
||||
|
||||
def about(request):
|
||||
"""Serve the about page"""
|
||||
title = _('About the {box_name}').format(box_name=cfg.box_name)
|
||||
return TemplateResponse(request, 'help_about.html', {'title': title})
|
||||
context = {
|
||||
'title': _('About the {box_name}').format(box_name=cfg.box_name),
|
||||
'version': __version__
|
||||
}
|
||||
return TemplateResponse(request, 'help_about.html', context)
|
||||
|
||||
|
||||
def helppage(request, page):
|
||||
|
||||
@ -42,6 +42,10 @@ transition from existing services.</p>
|
||||
href="http://wiki.debian.org/FreedomBox" target="_blank">Learn more
|
||||
»</a></p>
|
||||
|
||||
<p style='margin-top:30px'>
|
||||
You are running Plinth version {{ version }}.
|
||||
</p>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block sidebar %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user