Skip to content

Commit

Permalink
fix: handle undefined theme cookie name for lms settingss
Browse files Browse the repository at this point in the history
  • Loading branch information
hinakhadim committed Aug 23, 2024
1 parent c6200ab commit 6d77761
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
</div>
% endif
</div>
{% if INDIGO_THEME_COOKIE_NAME %}
<div class="secondary d-flex align-items-center">
<div class="secondary d-flex align-items-center">
{% if INDIGO_THEME_COOKIE_NAME %}
<div class="theme-toggle-button mr-4">
<span id="toggle-theme" role="button" tabindex="0">
<div class="darkmode_icon">
Expand All @@ -69,7 +69,6 @@
</div>
</span>
</div>
</div>
{% endif %}
<%include file="user_dropdown.html"/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,21 @@
%endif
% endif
</div>
{% if INDIGO_THEME_COOKIE_NAME %}
<div class="secondary d-flex align-items-center">
<div class="theme-toggle-button mr-4">
<span id="toggle-theme" role="button" tabindex="0">
<div class="darkmode_icon">
<span class="ray"></span>
<span class="ray"></span>
<span class="ray"></span>
<span class="ray"></span>
<span class="ray"></span>
<span class="ray"></span>
<span class="ray"></span>
<span class="ray"></span>
</div>
</span>
</div>
<div class="secondary d-flex align-items-center">
{% if INDIGO_THEME_COOKIE_NAME %}
<div class="theme-toggle-button mr-4">
<span id="toggle-theme" role="button" tabindex="0">
<div class="darkmode_icon">
<span class="ray"></span>
<span class="ray"></span>
<span class="ray"></span>
<span class="ray"></span>
<span class="ray"></span>
<span class="ray"></span>
<span class="ray"></span>
<span class="ray"></span>
</div>
</span>
</div>
{% endif %}
<div class="btn-holder">
Expand Down

0 comments on commit 6d77761

Please sign in to comment.