Move fastext nav to page top, fix Settings header, add working search
All checks were successful
Deploy / deploy (push) Successful in 23s
All checks were successful
Deploy / deploy (push) Successful in 23s
- Fastext colour keys now lead every page but the index, since they're the only nav those pages carry; the index keeps them as its closing row since its own body is already the full nav. - Settings page was missing page="settings" in its render_template call, so its header silently fell back to "P100 Index". - Library's search form posted a q param the route never read; it now filters the cached Sonarr/Radarr lists and shows matching tiles. - Discover gained a search bar that queries Ombi (already in front of TMDB/TVDB) and lets you add a result straight to Radarr/Sonarr, showing "Held" instead of a button for anything already in library. - Fixed the Add button's success check, which read d.ok against a response that actually sets d.success — it reported FAILED even when the add worked.
This commit is contained in:
parent
08491c0c9b
commit
abaccaaacd
6 changed files with 172 additions and 16 deletions
|
|
@ -14,6 +14,22 @@
|
|||
<button class="tt-btn" type="submit">Search</button>
|
||||
</form>
|
||||
|
||||
{% if search_results is not none %}
|
||||
<div class="tt-field">
|
||||
<span>Results</span>
|
||||
<span class="tt-field-meta">{{ search_results | length }} match{{ 'es' if search_results | length != 1 else '' }}</span>
|
||||
</div>
|
||||
{% if search_results %}
|
||||
<div class="tt-tiles">
|
||||
{% for it in search_results %}
|
||||
{{ tile(it.title, it.kind, it.poster, it.year) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% else %}
|
||||
<p class="tt-empty">No matches for “{{ q }}”.</p>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
<div class="tt-field">
|
||||
<span>Holdings</span>
|
||||
<span class="tt-field-meta">
|
||||
|
|
@ -55,7 +71,7 @@
|
|||
{{ service_error('Radarr', radarr.error) }}
|
||||
{% endif %}
|
||||
|
||||
{% if recently_added %}
|
||||
{% if not q and recently_added %}
|
||||
<div class="tt-field"><span>Newest In</span></div>
|
||||
<div class="tt-tiles">
|
||||
{% for it in recently_added %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue