1
0
Fork 0

Readd get_url

This commit is contained in:
Mo 2022-12-17 18:27:49 +01:00
parent 3b565d8fdc
commit 652f9e62ee
6 changed files with 21 additions and 12 deletions

View file

@ -3,10 +3,12 @@
<div class="container text-center"> <div class="container text-center">
<h1 class="h1">Seite nicht gefunden</h1> <h1 class="h1">Seite nicht gefunden</h1>
<img src="/images/404/bot.svg" class="img-fluid" width="300"/> <img src="{{ get_url(path='images/404/bot.svg') }}"
class="img-fluid"
width="300"/>
<div class="d-grid gap-2 pt-3"> <div class="d-grid gap-2 pt-3">
<a class="btn btn-dark" href="/" role="button">Zurück zur Startseite</a> <a class="btn btn-dark" href="{{ get_url(path='/') }}" role="button">Zurück zur Startseite</a>
</div> </div>
</div> </div>
{% endblock content %} {% endblock content %}

View file

@ -48,7 +48,10 @@
</div> </div>
</div> </div>
<iframe id="iframe" src="/contact-form" width="100%" title="Kontakt-Formular"></iframe> <iframe id="iframe"
src="{{ get_url(path='contact-form') }}"
width="100%"
title="Kontakt-Formular"></iframe>
<div class="alert alert-warning mt-2" role="alert"> <div class="alert alert-warning mt-2" role="alert">
<h5 class="alert-heading">Bitte beachten Sie:</h5> <h5 class="alert-heading">Bitte beachten Sie:</h5>

View file

@ -17,7 +17,8 @@
{% set image = resize_image(path=config.extra.logo_path, width=32, height=32, op="fill") %} {% set image = resize_image(path=config.extra.logo_path, width=32, height=32, op="fill") %}
<link rel="icon" type="image/x-icon" href="{{ image.url }}" /> <link rel="icon" type="image/x-icon" href="{{ image.url }}" />
<link href="/bootstrap/bootstrap.min.css" rel="stylesheet"/> <link href="{{ get_url(path='bootstrap/bootstrap.min.css') }}"
rel="stylesheet"/>
<style> <style>
.grow-on-hover { .grow-on-hover {
@ -54,7 +55,7 @@
{% include "partials/footer.tera.html" %} {% include "partials/footer.tera.html" %}
</footer> </footer>
<script src="/bootstrap/bootstrap.bundle.min.js"></script> <script src="{{ get_url(path='bootstrap/bootstrap.bundle.min.js') }}"></script>
{% block scripts %} {% block scripts %}
{% endblock scripts %} {% endblock scripts %}

View file

@ -1,6 +1,6 @@
{% extends "base.tera.html" %} {% extends "base.tera.html" %}
{% block styles %}<link rel="stylesheet" href="/leaflet/leaflet.css"/>{% endblock %} {% block styles %}<link rel="stylesheet" href="{{ get_url(path='leaflet/leaflet.css') }}"/>{% endblock %}
{% block content %} {% block content %}
<div class="row pb-3"> <div class="row pb-3">
@ -15,17 +15,19 @@
</div> </div>
<div class="d-grid col-5 mx-auto gap-2 pt-2 pb-4"> <div class="d-grid col-5 mx-auto gap-2 pt-2 pb-4">
<a href="/angebot" class="btn btn-success grow-on-hover shadow">Unser Angebot</a> <a href="{{ get_url(path='angebot') }}"
<a href="/termin" class="btn btn-success grow-on-hover shadow">Terminvereinbarung</a> class="btn btn-success grow-on-hover shadow">Unser Angebot</a>
<a href="{{ get_url(path='termin') }}"
class="btn btn-success grow-on-hover shadow">Terminvereinbarung</a>
</div> </div>
<div class="mb-2 shadow" id="map" style="height: 40vh;"></div> <div class="mb-2 shadow" id="map" style="height: 40vh;"></div>
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
<script src="/leaflet/leaflet.js"></script> <script src="{{ get_url(path='leaflet/leaflet.js') }}"></script>
<script> <script>
L.Icon.Default.imagePath = "/leaflet/images/"; L.Icon.Default.imagePath = "{{ get_url(path='leaflet/images/', trailing_slash=true) }}";
var center = L.latLng(50.05635, 7.12507); var center = L.latLng(50.05635, 7.12507);
var map = L.map('map', { var map = L.map('map', {

View file

@ -91,7 +91,8 @@
)}} )}}
<div class="d-grid col-5 mx-auto pt-2 pb-3"> <div class="d-grid col-5 mx-auto pt-2 pb-3">
<a href="/termin" class="btn btn-success grow-on-hover shadow">Terminvereinbarung</a> <a href="{{ get_url(path='termin') }}"
class="btn btn-success grow-on-hover shadow">Terminvereinbarung</a>
</div> </div>
<h4 class="text-center p-3" style="color: red;"> <h4 class="text-center p-3" style="color: red;">

View file

@ -15,7 +15,7 @@
<nav class="navbar navbar-expand-lg" <nav class="navbar navbar-expand-lg"
style="background-image: linear-gradient({{ config.extra.primary_color }}, 25%, white)"> style="background-image: linear-gradient({{ config.extra.primary_color }}, 25%, white)">
<div class="container-xxl"> <div class="container-xxl">
<a class="navbar-brand grow-on-hover" href="/"> <a class="navbar-brand grow-on-hover" href="{{ get_url(path='/') }}">
<!-- Use heigher resize_height for better resolution --> <!-- Use heigher resize_height for better resolution -->
{% set resize_height = 85 %} {% set resize_height = 85 %}
{% set logo_meta = get_image_metadata(path=config.extra.logo_path) %} {% set logo_meta = get_image_metadata(path=config.extra.logo_path) %}