aboutsummaryrefslogtreecommitdiffstats
path: root/client/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'client/views.py')
-rw-r--r--client/views.py9
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