From 36ae891283213008924630aecbcaba682f65cf6c Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Wed, 5 Jan 2022 11:21:39 +0100 Subject: edit password working --- client/templates/client/about.html | 16 +++++++++------- client/views.py | 4 ++++ 2 files changed, 13 insertions(+), 7 deletions(-) (limited to 'client') 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%} - Informazioni -{% endblock%} - {% block content %} +
+ + home + +
+

- Versione software {{version}}
Commit ID: {{commitid}} + Versione: {{version}}
Commit ID: {{commitid}}

Licenza
- Copyright (C) 2020-21 Andrea Lepori

+ Copyright (C) 2020-22 Andrea Lepori

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 -- cgit v1.2.1