0c03f4f4a6
- Implemented AppSettings model and table using SQLModel. - Created Settings router with endpoints for preferences and provider toggling. - Added Settings tab to the UI with real-time health status of providers. - Integrated language and provider filtering into anime and series search logic. - Updated templates to respect user-defined settings.
39 lines
1.1 KiB
HTML
39 lines
1.1 KiB
HTML
{% from "components/anime_card.html" import anime_card %}
|
|
|
|
<div class="search-results-container">
|
|
{% if results %}
|
|
{% for provider_id, items in results.items() %}
|
|
<div class="provider-section">
|
|
<h3 class="provider-title">{{ provider_id | upper }}</h3>
|
|
<div class="anime-grid">
|
|
{% for anime in items %}
|
|
{{ anime_card(anime, lang=settings.default_lang if settings else 'vostfr') }}
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
{% else %}
|
|
<div class="no-results">
|
|
<i class="fas fa-search"></i>
|
|
<p>Aucun anime trouvé pour votre recherche.</p>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<style>
|
|
.provider-section { margin-bottom: 40px; }
|
|
.provider-title {
|
|
color: var(--primary);
|
|
margin-bottom: 20px;
|
|
font-size: 1.2rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
}
|
|
.no-results {
|
|
text-align: center;
|
|
padding: 100px 20px;
|
|
color: var(--text-dim);
|
|
}
|
|
.no-results i { font-size: 4rem; margin-bottom: 20px; display: block; opacity: 0.2; }
|
|
</style>
|