ENHANCEMENT: Setting version tag in footer

This commit is contained in:
Jeroen De Meerleer 2022-09-06 13:44:41 +02:00
parent 98b4ce1c94
commit fc51167c04
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
7 changed files with 35 additions and 18 deletions

View File

@ -1,5 +1,5 @@
<!doctype html> <!doctype html>
<html> <html class="h-100">
<head> <head>
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
@ -11,8 +11,8 @@
</head> </head>
<body> <body class="d-flex flex-column h-100">
<div class="container-fluid"> <main class="flex-shrink-0 container-fluid">
<div class="row py-3"> <div class="row py-3">
<div class="col-12"> <div class="col-12">
<div class="page-header"> <div class="page-header">
@ -27,18 +27,16 @@
<li class="nav-item"><a class="nav-link" href="{{ path('job_add') }}">{{ 'menu.add' | trans }}</a></li> <li class="nav-item"><a class="nav-link" href="{{ path('job_add') }}">{{ 'menu.add' | trans }}</a></li>
<li class="nav-item"><a class="nav-link" href="{{ path('logout') }}">{{ 'menu.logout' | trans }}</a></li> <li class="nav-item"><a class="nav-link" href="{{ path('logout') }}">{{ 'menu.logout' | trans }}</a></li>
</ul> </ul>
<div class="m-3 text-muted small">
{% if (kernelProjectDir ~ "/version") is ondisk %}{{ (kernelProjectDir ~ "/version") | contents }}{% else %}dev-main{% endif %}
</div>
</div> </div>
<div class="col-12 col-xxl-10"> <div class="col-12 col-xxl-10">
{{ include('flashes.html.twig') }} {{ include('flashes.html.twig') }}
{% block content %}{% endblock %} {% block content %}{% endblock %}
</div> </div>
</div> </div>
</div> </main>
{% block extrahtml %}{% endblock %} {% block extrahtml %}{% endblock %}
{{ include('footer.html.twig') }}
</body> </body>
</html> </html>

View File

@ -0,0 +1,12 @@
<footer class="footer mt-auto py-3 bg-light">
<div class="container-fluid">
<div class="row">
<div class="col align-self-start text-start text-muted">
{{ 'footer.title' | trans}} {% if (kernelProjectDir ~ "/version") is ondisk %}{{ (kernelProjectDir ~ "/version") | contents }}{% else %}dev-main{% endif %}
</div>
<div class="col align-self-end text-end text-muted">
<a href="https://git.jeroened.be/webcron/" target="_blank">{{ 'footer.source' | trans}}</a>
</div>
</div>
</div>
</footer>

View File

@ -1,5 +1,5 @@
<!doctype html> <!doctype html>
<html> <html class="h-100">
<head> <head>
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
@ -9,8 +9,8 @@
{{ encore_entry_script_tags('security.login') }} {{ encore_entry_script_tags('security.login') }}
</head> </head>
<body> <body class="d-flex flex-column h-100">
<div class="container-fluid py-3"> <main class="container-fluid py-3">
<div class="row justify-content-md-center"> <div class="row justify-content-md-center">
<div class="col-md-4 col-xs-12"> <div class="col-md-4 col-xs-12">
{{ include('flashes.html.twig') }} {{ include('flashes.html.twig') }}
@ -47,11 +47,9 @@
<p class="mb-0">{{ 'demomode.credentials.password' | trans }}: {{ app.request.server.get('DEMO_PASS') }}</p> <p class="mb-0">{{ 'demomode.credentials.password' | trans }}: {{ app.request.server.get('DEMO_PASS') }}</p>
</div> </div>
{% endif %} {% endif %}
<div class="mb-3 text-muted small">
{% if (kernelProjectDir ~ "/version") is ondisk %}{{ (kernelProjectDir ~ "/version") | contents }}{% else %}dev-main{% endif %}
</div>
</div> </div>
</div> </div>
</div> </main>
{{ include('footer.html.twig') }}
</body> </body>
</html> </html>

View File

@ -197,4 +197,7 @@ job:
add: add:
label: "4dd variable" label: "4dd variable"
submit: submit:
label: "Subm1t!" label: "Subm1t!"
footer:
title: "W3bcr0n m4n4g3m3nt"
source: "S0urc3"

View File

@ -197,4 +197,7 @@ job:
add: add:
label: "Add variable" label: "Add variable"
submit: submit:
label: "Submit!" label: "Submit!"
footer:
title: "Webcron Management"
source: "Source"

View File

@ -194,9 +194,11 @@ job:
placeholder: "Naam" placeholder: "Naam"
value: value:
placeholder: "Waarde" placeholder: "Waarde"
helptext: "Je kan variabelen gebruiken via {variabele-naam} in de job details" helptext: "Je kan variabelen gebruiken via {variabele-naam} in de taak details"
add: add:
label: "Variable toevoegen" label: "Variable toevoegen"
submit: submit:
label: "Verzend!" label: "Verzend!"
footer:
title: "Webcron Management"
source: "Broncode"

1
version Normal file
View File

@ -0,0 +1 @@
v1.1-dev