diff options
Diffstat (limited to '')
-rw-r--r-- | client/views.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/client/views.py b/client/views.py index c9bb89b..51351dd 100644 --- a/client/views.py +++ b/client/views.py @@ -244,3 +244,12 @@ def edit_wrapper(request, context): return HttpResponseRedirect('/') return render(request, 'client/doc_edit.html', context) + +def about(request): + version = "" + with open("version.txt", 'r') as f: + version = f.read() + if version.startswith("0"): + version = "Beta " + version + context = {"version": version} + return render(request, 'client/about.html', context)
\ No newline at end of file |