Adjust paths to / to be dynamic

This is useful if you want to run babybuddy in a subdirectory
This commit is contained in:
MagiX13 2021-12-17 15:48:39 +01:00 committed by Christopher Charbonneau Wells
parent 97fa8d7000
commit 17e35e6469
3 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@
{% block breadcrumb_nav %}
<nav aria-label="breadcrumb" role="navigation">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">{% trans "Home" %}</a></li>
<li class="breadcrumb-item"><a href={% url "babybuddy:root-router" %}>{% trans "Home" %}</a></li>
{% block breadcrumbs %}{% endblock %}
</ol>
</nav>

View File

@ -3,7 +3,7 @@
{% block nav %}
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
<a class="navbar-brand mr-2" href="/">
<a class="navbar-brand mr-2" href={% url "babybuddy:root-router" %}>
<img src="{% static "babybuddy/logo/icon-brand.png" %}" width="30" height="30" class="d-inline-block align-top" alt="">
<span class="d-none d-lg-inline-block">
<span class="text-primary">Baby</span> Buddy

View File

@ -19,6 +19,6 @@
{% endblocktrans %}
</h1>
<input type="submit" value="{% trans "Delete" %}" class="btn btn-danger" />
<a href="/" class="btn btn-default">{% trans "Cancel" %}</a>
<a href={% url "babybuddy:root-router" %} class="btn btn-default">{% trans "Cancel" %}</a>
</form>
{% endblock %}