Skip to content

Commit

Permalink
feat: Boostrap 5.x support
Browse files Browse the repository at this point in the history
Change-Id: I407a0641f005ff4899f4134be662c86e63013a44
  • Loading branch information
hamza authored and pdessauw committed Aug 25, 2023
1 parent 98bcd54 commit 39ccf3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/theme/footer/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<div id="footer">
<div class="d-flex">
<div class="{% if BOOTSTRAP_VERSION == "4.6.2" %}mr-auto{% elif BOOTSTRAP_VERSION == "5.1.3" %}me-auto{% endif %}">
<div class="{% if BOOTSTRAP_VERSION|first == "4" %}mr-auto{% elif BOOTSTRAP_VERSION|first == "5" %}me-auto{% endif %}">
CDCS Version {% include "theme/footer/version.html" %}
</div>
<div id="footer-right" class="d-flex">
Expand Down
4 changes: 2 additions & 2 deletions templates/theme/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<!-- End float left menu-->

<!-- Start float right menu-->
<li class="nested {% if BOOTSTRAP_VERSION == "4.6.2" %}float-right{% elif BOOTSTRAP_VERSION == "5.1.3" %}float-end{% endif %}">
<li class="nested {% if BOOTSTRAP_VERSION|first == "4" %}float-right{% elif BOOTSTRAP_VERSION|first == "5" %}float-end{% endif %}">
{% if user.is_authenticated %}
<div class="dropdown">
<a class="dropdown-toggle"
Expand Down Expand Up @@ -141,7 +141,7 @@
</a>
{% endif %}
</li>
<li class="nested {% if BOOTSTRAP_VERSION == "4.6.2" %}float-right{% elif BOOTSTRAP_VERSION == "5.1.3" %}float-end{% endif %}">
<li class="nested {% if BOOTSTRAP_VERSION|first == "4" %}float-right{% elif BOOTSTRAP_VERSION|first == "5" %}float-end{% endif %}">
<div class="dropdown">
<a class="dropdown-toggle"
type="button"
Expand Down

0 comments on commit 39ccf3e

Please sign in to comment.