All checks were successful
Deploy / deploy (push) Successful in 24s
From a frontend-design skill review of all pages, after last session's chrome changes (top nav, all-tabs nav, header download row): - The top/closing fastext nav now mutes the entry matching the current page (.fastext-here) instead of rendering a link to the page you're already on. - Colour in fastext is reserved for the four entries that still carry a real keyboard shortcut (r/g/y/c); the other four render in plain ink instead of reusing k-red/k-green/k-yellow/k-cyan for a destination they don't semantically mean (e.g. Requests no longer shows in the app's own off-air red). - Discover's badge slot meant "critic score" on its RT tiles and "release year" on its new search tiles at the same time. Search results (Library and Discover) now fold year/held-state into the sub-line instead, leaving the badge exclusively for critic score. - System's Transmission rows now carry a small ↗ glyph, since they silently changed from in-app navigation to opening each service's own UI in a new tab with no visual cue. - SABnzbd polling drops from 5s to 20s on pages that only show the header's download figure (everywhere but System/Activity, which keep 5s for their own live figures) — a number idle 95% of the time doesn't need second-level freshness sitewide. - DESIGN.md's fastext description, now-current per this session's nav changes.
70 lines
2.8 KiB
HTML
70 lines
2.8 KiB
HTML
{% extends "_shell.html" %}
|
|
{% from "_macros.html" import tile, service_error %}
|
|
{% block title %}P103 Discover{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1 class="tt-dh bloom tt-masthead">DISCOVER</h1>
|
|
<p class="tt-empty">Popular right now, with anything already in library filtered out.</p>
|
|
|
|
{#- Search sits at the top for the same reason it does on Library: a
|
|
title in mind is the common case. This one hits Radarr's and
|
|
Sonarr's own lookup directly — the same call /add-to-radarr and
|
|
/add-to-sonarr already make — so a result here always resolves the
|
|
same way a click on its own Add button will. -#}
|
|
<form class="tt-search" action="{{ request.script_root }}/discover" method="get" role="search">
|
|
<label class="visually-hidden" for="q">Search Sonarr and Radarr for a title to add</label>
|
|
<input class="tt-input" type="search" id="q" name="q" value="{{ q }}"
|
|
placeholder="SEARCH TO ADD" autocomplete="off" spellcheck="false">
|
|
<button class="tt-btn" type="submit">Search</button>
|
|
</form>
|
|
|
|
{% if search %}
|
|
<div class="tt-field">
|
|
<span>Results</span>
|
|
<span class="tt-field-meta">“{{ q }}”</span>
|
|
</div>
|
|
{% if search.status != 'ok' %}
|
|
{{ service_error('Sonarr/Radarr', search.error) }}
|
|
{% elif search.results %}
|
|
<div class="tt-tiles">
|
|
{#- No badge here: the badge slot means "critic score" below,
|
|
from the RT feed. A search result has no score, so its
|
|
year and held-state live in the sub-line instead of
|
|
overloading that slot with a second meaning. -#}
|
|
{% for it in search.results %}
|
|
{{ tile(it.title, it.kind ~ (' · ' ~ it.year if it.year else '') ~ (' · Held' if it.held else ''), it.poster, '', ('' if it.held else '+ Add'), it.target) }}
|
|
{% endfor %}
|
|
</div>
|
|
{% else %}
|
|
<p class="tt-empty">No matches for “{{ q }}”.</p>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
<div class="tt-field">
|
|
<span>Films</span>
|
|
<span class="tt-field-meta">{{ rt_movies | length }} not in library</span>
|
|
</div>
|
|
{% if rt_movies %}
|
|
<div class="tt-tiles">
|
|
{% for m in rt_movies %}
|
|
{{ tile(m.title, m.year, m.poster, m.score, '+ Add', 'radarr') }}
|
|
{% endfor %}
|
|
</div>
|
|
{% else %}
|
|
<p class="tt-empty">Nothing to suggest — the feed is unreachable or it's all already in your library.</p>
|
|
{% endif %}
|
|
|
|
<div class="tt-field">
|
|
<span>Television</span>
|
|
<span class="tt-field-meta">{{ rt_tv | length }} not in library</span>
|
|
</div>
|
|
{% if rt_tv %}
|
|
<div class="tt-tiles">
|
|
{% for s in rt_tv %}
|
|
{{ tile(s.title, s.year, s.poster, s.score, '+ Add', 'sonarr') }}
|
|
{% endfor %}
|
|
</div>
|
|
{% else %}
|
|
<p class="tt-empty">Nothing to suggest — the feed is unreachable or you already hold it all.</p>
|
|
{% endif %}
|
|
{% endblock %}
|