ENHANCEMENT: Setting version tag in footer
This commit is contained in:
parent
98b4ce1c94
commit
fc51167c04
@ -1,5 +1,5 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<html class="h-100">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
@ -11,8 +11,8 @@
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container-fluid">
|
||||
<body class="d-flex flex-column h-100">
|
||||
<main class="flex-shrink-0 container-fluid">
|
||||
<div class="row py-3">
|
||||
<div class="col-12">
|
||||
<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('logout') }}">{{ 'menu.logout' | trans }}</a></li>
|
||||
</ul>
|
||||
<div class="m-3 text-muted small">
|
||||
{% if (kernelProjectDir ~ "/version") is ondisk %}{{ (kernelProjectDir ~ "/version") | contents }}{% else %}dev-main{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-xxl-10">
|
||||
{{ include('flashes.html.twig') }}
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
{% block extrahtml %}{% endblock %}
|
||||
{{ include('footer.html.twig') }}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
12
templates/footer.html.twig
Normal file
12
templates/footer.html.twig
Normal 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>
|
@ -1,5 +1,5 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<html class="h-100">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
@ -9,8 +9,8 @@
|
||||
{{ encore_entry_script_tags('security.login') }}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container-fluid py-3">
|
||||
<body class="d-flex flex-column h-100">
|
||||
<main class="container-fluid py-3">
|
||||
<div class="row justify-content-md-center">
|
||||
<div class="col-md-4 col-xs-12">
|
||||
{{ include('flashes.html.twig') }}
|
||||
@ -47,11 +47,9 @@
|
||||
<p class="mb-0">{{ 'demomode.credentials.password' | trans }}: {{ app.request.server.get('DEMO_PASS') }}</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="mb-3 text-muted small">
|
||||
{% if (kernelProjectDir ~ "/version") is ondisk %}{{ (kernelProjectDir ~ "/version") | contents }}{% else %}dev-main{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
{{ include('footer.html.twig') }}
|
||||
</body>
|
||||
</html>
|
@ -197,4 +197,7 @@ job:
|
||||
add:
|
||||
label: "4dd variable"
|
||||
submit:
|
||||
label: "Subm1t!"
|
||||
label: "Subm1t!"
|
||||
footer:
|
||||
title: "W3bcr0n m4n4g3m3nt"
|
||||
source: "S0urc3"
|
@ -197,4 +197,7 @@ job:
|
||||
add:
|
||||
label: "Add variable"
|
||||
submit:
|
||||
label: "Submit!"
|
||||
label: "Submit!"
|
||||
footer:
|
||||
title: "Webcron Management"
|
||||
source: "Source"
|
@ -194,9 +194,11 @@ job:
|
||||
placeholder: "Naam"
|
||||
value:
|
||||
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:
|
||||
label: "Variable toevoegen"
|
||||
submit:
|
||||
label: "Verzend!"
|
||||
|
||||
footer:
|
||||
title: "Webcron Management"
|
||||
source: "Broncode"
|
||||
|
Loading…
Reference in New Issue
Block a user