diff --git a/app/authentication/authentication.py b/app/authentication/authentication.py index 1f7ab3b..a3c9059 100644 --- a/app/authentication/authentication.py +++ b/app/authentication/authentication.py @@ -6,6 +6,7 @@ from app.authenticator import authenticator from app.util import login_user, logout_user +from app.util import get_git_branch from . import authentication_bp @@ -21,7 +22,7 @@ def signin(): """ route: /auth/signin """ - return render_template('authentication/signin.html') + return render_template('authentication/signin.html', gitv=get_git_branch()) @authentication_bp.route('/signin//', methods=['GET']) def authenticate(username, password): @@ -36,7 +37,7 @@ def registration(): """ route: /auth/registration """ - return render_template('authentication/registration.html') + return render_template('authentication/registration.html', gitv=get_git_branch()) @authentication_bp.route('/registration//', methods=['GET']) def register(username, password): @@ -50,7 +51,7 @@ def restore_password(): """ route: /auth/restore-password """ - return render_template('authentication/restore-password.html') + return render_template('authentication/restore-password.html', gitv=get_git_branch()) @authentication_bp.route('/signout') def signout(): diff --git a/app/authentication/static/registration.css b/app/authentication/static/registration.css index a486a20..b3ae8e1 100644 --- a/app/authentication/static/registration.css +++ b/app/authentication/static/registration.css @@ -145,4 +145,17 @@ button:hover { text-align: center; margin-top: 30px; color: #fff; +} + +#gitv-label { + position: absolute; + top: 10px; + left: 10px; + background-color: burlywood; + color: black; + padding: 5px 20px; + font-size: 10px; + /* font-weight: bold; */ + border-radius: 25px; + z-index: 1000; } \ No newline at end of file diff --git a/app/authentication/static/restore-password.css b/app/authentication/static/restore-password.css index 1cc63c6..98afd10 100644 --- a/app/authentication/static/restore-password.css +++ b/app/authentication/static/restore-password.css @@ -1,3 +1,12 @@ +@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@200;300;400;500;600;700&display=swap"); + +* { + margin: 0; + padding: 0; + box-sizing: border-box; + font-family: "Open Sans", sans-serif; +} + body { display: flex; align-items: center; @@ -25,4 +34,17 @@ h1 { opacity: 0.6; transform: translateY(0); } +} + +#gitv-label { + position: absolute; + top: 10px; + left: 10px; + background-color: burlywood; + color: black; + padding: 5px 20px; + font-size: 10px; + /* font-weight: bold; */ + border-radius: 25px; + z-index: 1000; } \ No newline at end of file diff --git a/app/authentication/static/signin.css b/app/authentication/static/signin.css index d02e012..12bb24f 100644 --- a/app/authentication/static/signin.css +++ b/app/authentication/static/signin.css @@ -135,4 +135,17 @@ button:hover { text-align: center; margin-top: 30px; color: #fff; +} + +#gitv-label { + position: absolute; + top: 10px; + left: 10px; + background-color: burlywood; + color: black; + padding: 5px 20px; + font-size: 10px; + /* font-weight: bold; */ + border-radius: 25px; + z-index: 1000; } \ No newline at end of file diff --git a/app/authentication/templates/authentication/registration.html b/app/authentication/templates/authentication/registration.html index 0b37260..440aa63 100644 --- a/app/authentication/templates/authentication/registration.html +++ b/app/authentication/templates/authentication/registration.html @@ -7,6 +7,9 @@ Registration + {% if gitv %} +
-b {{ gitv }}
+ {% endif %}

REGISTRATION

diff --git a/app/authentication/templates/authentication/restore-password.html b/app/authentication/templates/authentication/restore-password.html index 50cb49c..30db58f 100644 --- a/app/authentication/templates/authentication/restore-password.html +++ b/app/authentication/templates/authentication/restore-password.html @@ -7,6 +7,9 @@ Restore Password + {% if gitv %} +
-b {{ gitv }}
+ {% endif %}

Restore Password

\ No newline at end of file diff --git a/app/authentication/templates/authentication/signin.html b/app/authentication/templates/authentication/signin.html index 03a5536..21c152a 100644 --- a/app/authentication/templates/authentication/signin.html +++ b/app/authentication/templates/authentication/signin.html @@ -9,6 +9,9 @@ + {% if gitv %} +
-b {{ gitv }}
+ {% endif %}

SIGN IN

diff --git a/app/home/home.py b/app/home/home.py index e446fb9..34d3530 100644 --- a/app/home/home.py +++ b/app/home/home.py @@ -5,6 +5,7 @@ from flask import render_template from app.util import login_required +from app.util import get_git_branch from . import home_bp @@ -15,7 +16,7 @@ def home(): Returns: str: The rendered HTML of the home page. """ - return render_template('home/home.html') + return render_template('home/home.html', gitv=get_git_branch()) @home_bp.route('/private') @login_required @@ -25,4 +26,4 @@ def home_private(): Returns: str: The rendered HTML of the home page. """ - return render_template('home/home-private.html') + return render_template('home/home-private.html', gitv=get_git_branch()) diff --git a/app/home/static/home-private.css b/app/home/static/home-private.css index 451d3cf..94cde5b 100644 --- a/app/home/static/home-private.css +++ b/app/home/static/home-private.css @@ -61,4 +61,17 @@ li { border-radius: 50px !important; margin: 0 0 0 10px; padding: 9px 17px 9px 19px; +} + +#gitv-label { + position: absolute; + top: 10px; + left: 10px; + background-color: burlywood; + color: black; + padding: 5px 20px; + font-size: 10px; + /* font-weight: bold; */ + border-radius: 25px; + z-index: 1000; } \ No newline at end of file diff --git a/app/home/static/home.css b/app/home/static/home.css index 7908d22..3ceb241 100644 --- a/app/home/static/home.css +++ b/app/home/static/home.css @@ -61,4 +61,17 @@ li { border-radius: 50px !important; margin: 0 0 0 10px; padding: 9px 17px 9px 19px; +} + +#gitv-label { + position: absolute; + top: 10px; + left: 10px; + background-color: burlywood; + color: black; + padding: 5px 20px; + font-size: 10px; + /* font-weight: bold; */ + border-radius: 25px; + z-index: 1000; } \ No newline at end of file diff --git a/app/home/templates/home/home-private.html b/app/home/templates/home/home-private.html index 2fe0958..9129393 100644 --- a/app/home/templates/home/home-private.html +++ b/app/home/templates/home/home-private.html @@ -15,6 +15,9 @@ + {% if gitv %} +
-b {{ gitv }}
+ {% endif %}