mirror of
https://github.com/FuzzyGrim/Yamtrack.git
synced 2026-03-03 00:47:03 +00:00
update library templates with djlint
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
<!-- Show when password is visible -->
|
||||
<div x-cloak
|
||||
x-show="{% if attrs.name == 'password2' %}showConfirmPassword{% else %}showPassword{% endif %}">
|
||||
{% include "app/icons/eye-closed.svg" with classes="w-5 h-5" %}
|
||||
{% include "app/icons/eye-closed.svg" with classes="w-5 h-5" %}
|
||||
</div>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -1 +1 @@
|
||||
{% comment %} djlint:off {% endcomment %}{% load allauth %}<p class="mb-4">{% slot %}{% endslot %}</p>
|
||||
{% comment %} djlint:off {% endcomment %}{% load allauth %}<p class="mb-4">{% slot %}{% endslot %}</p>
|
||||
|
||||
@@ -1 +1 @@
|
||||
{% extends "allauth/layouts/entrance.html" %}
|
||||
{% extends "allauth/layouts/entrance.html" %}
|
||||
|
||||
@@ -4,43 +4,43 @@
|
||||
{% load static %}
|
||||
|
||||
{% block title %}
|
||||
Advanced - Yamtrack
|
||||
Advanced - Yamtrack
|
||||
{% endblock title %}
|
||||
|
||||
{% block settings_content %}
|
||||
|
||||
<div class="space-y-6">
|
||||
<div class="bg-[#2a2f35] rounded-lg p-6">
|
||||
<div class="flex items-center mb-5">
|
||||
{% include "app/icons/vertical-sliders.svg" with classes="w-6 h-6 text-indigo-400 mr-3" %}
|
||||
<h2 class="text-xl font-semibold">Advanced</h2>
|
||||
</div>
|
||||
<div class="space-y-6">
|
||||
<div class="bg-[#2a2f35] rounded-lg p-6">
|
||||
<div class="flex items-center mb-5">
|
||||
{% include "app/icons/vertical-sliders.svg" with classes="w-6 h-6 text-indigo-400 mr-3" %}
|
||||
<h2 class="text-xl font-semibold">Advanced</h2>
|
||||
</div>
|
||||
|
||||
<div class="bg-[#39404b] p-5 rounded-lg mb-6">
|
||||
<div class="flex items-center mb-3">
|
||||
{% include "app/icons/trashcan.svg" with classes="w-5 h-5 text-indigo-400 mr-2" %}
|
||||
<h3 class="text-base font-medium">Clear Search Cache</h3>
|
||||
</div>
|
||||
<p class="text-gray-400 mb-4 text-sm">
|
||||
Yamtrack stores your search results in a cache to speed up performance and reduce API calls.
|
||||
<br>
|
||||
Normally, these cached results expire automatically after 24 hours.
|
||||
If your search results appear outdated, you can clear the cache manually.
|
||||
<br>
|
||||
Your next search may be slightly slower as fresh data is retrieved.
|
||||
</p>
|
||||
<div class="flex space-x-3">
|
||||
<form method="post" action="{% url 'clear_search_cache' %}">
|
||||
{% csrf_token %}
|
||||
<button type="submit"
|
||||
class="flex items-center px-4 py-2 bg-red-600 text-white rounded-md hover:bg-red-700 transition-colors text-sm cursor-pointer">
|
||||
{% include "app/icons/trashcan.svg" with classes="w-4 h-4 mr-2" %}
|
||||
Clear Search Cache
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bg-[#39404b] p-5 rounded-lg mb-6">
|
||||
<div class="flex items-center mb-3">
|
||||
{% include "app/icons/trashcan.svg" with classes="w-5 h-5 text-indigo-400 mr-2" %}
|
||||
<h3 class="text-base font-medium">Clear Search Cache</h3>
|
||||
</div>
|
||||
<p class="text-gray-400 mb-4 text-sm">
|
||||
Yamtrack stores your search results in a cache to speed up performance and reduce API calls.
|
||||
<br>
|
||||
Normally, these cached results expire automatically after 24 hours.
|
||||
If your search results appear outdated, you can clear the cache manually.
|
||||
<br>
|
||||
Your next search may be slightly slower as fresh data is retrieved.
|
||||
</p>
|
||||
<div class="flex space-x-3">
|
||||
<form method="post" action="{% url 'clear_search_cache' %}">
|
||||
{% csrf_token %}
|
||||
<button type="submit"
|
||||
class="flex items-center px-4 py-2 bg-red-600 text-white rounded-md hover:bg-red-700 transition-colors text-sm cursor-pointer">
|
||||
{% include "app/icons/trashcan.svg" with classes="w-4 h-4 mr-2" %}
|
||||
Clear Search Cache
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock settings_content %}
|
||||
|
||||
@@ -21,9 +21,7 @@
|
||||
hx-target="#excluded-items-container"
|
||||
hx-swap="innerHTML"
|
||||
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
|
||||
hx-vals='{"item_id": "{{ item.id }}"}'>
|
||||
{% include "app/icons/x.svg" with classes="w-4 h-4" %}
|
||||
</button>
|
||||
hx-vals='{"item_id": "{{ item.id }}"}'>{% include "app/icons/x.svg" with classes="w-4 h-4" %}</button>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
|
||||
Reference in New Issue
Block a user