mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-26 10:38:36 +02:00
feat: automated replacement
This commit is contained in:
@@ -1,24 +1,24 @@
|
||||
{% load settings %}
|
||||
{% load i18n %}
|
||||
<div class="dropdown">
|
||||
<div class="btn btn-secondary btn-sm" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<div class="tw:dropdown tw:dropdown-top tw:dropdown-end">
|
||||
<div tabindex="0" role="button" class="tw:btn tw:btn-secondary tw:btn-sm">
|
||||
<i class="fa-solid fa-cog"></i>
|
||||
</div>
|
||||
<ul class="dropdown-menu dropdown-menu-start dropdown-menu-lg-end">
|
||||
<li><a class="dropdown-item"
|
||||
<ul tabindex="0" class="tw:dropdown-content tw:menu tw:bg-base-100 tw:rounded-box tw:z-[1] tw:w-52 tw:p-2 tw:shadow">
|
||||
<li><a
|
||||
hx-get="{% url 'user_settings' %}"
|
||||
hx-target="#generic-offcanvas"
|
||||
role="button">
|
||||
<i class="fa-solid fa-gear me-2 fa-fw"></i>{% translate 'Settings' %}</a></li>
|
||||
<li><a class="dropdown-item"
|
||||
<i class="fa-solid fa-gear tw:me-2 fa-fw"></i>{% translate 'Settings' %}</a></li>
|
||||
<li><a
|
||||
hx-get="{% url 'user_edit' pk=request.user.id %}"
|
||||
hx-target="#generic-offcanvas"
|
||||
role="button">
|
||||
<i class="fa-solid fa-user me-2 fa-fw"></i>{% translate 'Edit profile' %}</a></li>
|
||||
<li><hr class="dropdown-divider"></li>
|
||||
<i class="fa-solid fa-user tw:me-2 fa-fw"></i>{% translate 'Edit profile' %}</a></li>
|
||||
<hr class="tw:my-1 tw:text-base-content/60">
|
||||
{% spaceless %}
|
||||
<li>
|
||||
<a class="dropdown-item" hx-get="{% url 'toggle_amount_visibility' %}" role="button">
|
||||
<a hx-get="{% url 'toggle_amount_visibility' %}" role="button">
|
||||
{% if user.settings.hide_amounts %}
|
||||
{% include 'users/generic/show_amounts.html' %}
|
||||
{% else %}
|
||||
@@ -29,7 +29,7 @@
|
||||
{% endspaceless %}
|
||||
{% spaceless %}
|
||||
<li>
|
||||
<a class="dropdown-item" hx-get="{% url 'toggle_sound_playing' %}" role="button">
|
||||
<a hx-get="{% url 'toggle_sound_playing' %}" role="button">
|
||||
{% if user.settings.mute_sounds %}
|
||||
{% include 'users/generic/play_sounds.html' %}
|
||||
{% else %}
|
||||
@@ -38,15 +38,15 @@
|
||||
</a>
|
||||
</li>
|
||||
{% endspaceless %}
|
||||
<li><hr class="dropdown-divider"></li>
|
||||
<hr class="tw:my-1 tw:text-base-content/60">
|
||||
<li>
|
||||
<a class="dropdown-item" hx-get="{% url 'invalidate_cache' %}" role="button">
|
||||
<i class="fa-solid fa-broom me-2 fa-fw"></i>{% translate 'Clear cache' %}
|
||||
<a hx-get="{% url 'invalidate_cache' %}" role="button">
|
||||
<i class="fa-solid fa-broom tw:me-2 fa-fw"></i>{% translate 'Clear cache' %}
|
||||
</a>
|
||||
</li>
|
||||
<li><a class="dropdown-item" href="{% url 'logout' %}"><i class="fa-solid fa-door-open me-2 fa-fw"></i
|
||||
<li><a href="{% url 'logout' %}"><i class="fa-solid fa-door-open tw:me-2 fa-fw"></i
|
||||
>{% translate 'Logout' %}</a></li>
|
||||
<li><hr class="dropdown-divider"></li>
|
||||
<li><a class="dropdown-item" href="https://github.com/eitchtee/WYGIWYH/releases" target="_blank" rel="nofollow">v. {% settings "APP_VERSION" %}</a></li>
|
||||
<hr class="tw:my-1 tw:text-base-content/60">
|
||||
<li><a href="https://github.com/eitchtee/WYGIWYH/releases" target="_blank" rel="nofollow">v. {% settings "APP_VERSION" %}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user