aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2022-01-05 11:21:39 +0100
committerAndrea Lepori <alepori@student.ethz.ch>2022-01-05 11:21:53 +0100
commit36ae891283213008924630aecbcaba682f65cf6c (patch)
treea959895965188fda91603c6e32fb4994bdf7ad82 /client
parentlogout user if token expired + set password page (diff)
downloadscout-subs-36ae891283213008924630aecbcaba682f65cf6c.tar.gz
scout-subs-36ae891283213008924630aecbcaba682f65cf6c.zip
edit password working
Diffstat (limited to '')
-rw-r--r--client/templates/client/about.html16
-rw-r--r--client/views.py4
2 files changed, 13 insertions, 7 deletions
diff --git a/client/templates/client/about.html b/client/templates/client/about.html
index dfeab99..4ace6d3 100644
--- a/client/templates/client/about.html
+++ b/client/templates/client/about.html
@@ -1,22 +1,24 @@
-{% extends 'registration/base_client.html' %}
+{% extends 'registration/base_simple.html' %}
{% block title %}About{% endblock %}
-{%block breadcrumb%}
- <a class="breadcrumb hide-on-med-and-down">Informazioni</a>
-{% endblock%}
-
{% block content %}
+ <div class="fixed-action-btn">
+ <a class="btn-floating btn-large {{color}}" href='/'>
+ <i class="large material-icons">home</i>
+ </a>
+ </div>
+
<div class="row">
<div class="col l6 offset-l3 m8 offset-m2 s12">
<div class="card">
<div class="card-content">
<p>
- Versione software {{version}}<br>Commit ID: <a href="https://git.thearcway.org/mafaldo/scout-subs/commit/?id={{commitid}}">{{commitid}}</a>
+ Versione: {{version}}<br>Commit ID: <a href="https://git.thearcway.org/mafaldo/scout-subs/commit/?id={{commitid}}">{{commitid}}</a>
</p>
<h5>Licenza</h5>
<blockquote>
- Copyright (C) 2020-21 Andrea Lepori<br><br>
+ Copyright (C) 2020-22 Andrea Lepori<br><br>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/client/views.py b/client/views.py
index 41bb3dd..44820be 100644
--- a/client/views.py
+++ b/client/views.py
@@ -304,6 +304,10 @@ def about(request):
version = version[version.find("=")+1:]
version = version.replace("\n", " ").replace("=", " ")
+ # get branch
+ branch = check_output(["git", "rev-parse", "--abbrev-ref", "HEAD"]).decode()
+ version += " (" + branch[:-1] + ")"
+
if version.startswith("0"):
version = "Beta " + version