aboutsummaryrefslogtreecommitdiffstats
path: root/client/views.py
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2020-07-27 16:34:41 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2020-07-27 16:34:41 +0200
commit90f23ce16a064eb7cbcfcb25644f3272b7cb5ae6 (patch)
tree9a75abceafbc50aff227ff78cf7028c12c9bb79f /client/views.py
parentbug fixes and visual improvements (diff)
downloadscout-subs-90f23ce16a064eb7cbcfcb25644f3272b7cb5ae6.tar.gz
scout-subs-90f23ce16a064eb7cbcfcb25644f3272b7cb5ae6.zip
about page and licence
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