[webui] [enhancement] Add a color-coded status for each tracker utilized in dashboard search (#15088). resolves #15080

This commit is contained in:
vonvenera 2024-02-26 01:31:58 +01:00 committed by GitHub
parent a3a04f0405
commit 4b17b77c02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 40 additions and 7 deletions

View File

@ -378,3 +378,11 @@ input#searchquery {
.tagify .tagify__tag-text {
text-transform: lowercase;
}
#searchResults .indexers .error{
color: Tomato;
}
#searchResults .indexers .no-results{
color: Grey;
}

View File

@ -372,3 +372,12 @@ input#searchquery {
.tagify .tagify__tag-text {
text-transform: lowercase;
}
#searchResults .indexers .error{
color: Tomato;
}
#searchResults .indexers .no-results{
color: Grey;
}

View File

@ -29,8 +29,8 @@
<link rel="stylesheet" type="text/css" href="../bootstrap/bootstrap.min.css?changed=2017083001">
<link rel="stylesheet" type="text/css" href="../animate.css?changed=2017083001">
<link rel="stylesheet" type="text/css" href="../css/tagify.css?changed=11662">
<link rel="stylesheet" type="text/css" href="../custom.css?changed=20220721002" media="only screen and (min-device-width: 480px)">
<link rel="stylesheet" type="text/css" href="../custom_mobile.css?changed=20220721002" media="only screen and (max-device-width: 480px)">
<link rel="stylesheet" type="text/css" href="../custom.css?changed=20240225001" media="only screen and (min-device-width: 480px)">
<link rel="stylesheet" type="text/css" href="../custom_mobile.css?changed=20240225001" media="only screen and (max-device-width: 480px)">
<link rel="stylesheet" type="text/css" href="../css/jquery.dataTables.min.css?changed=2017083001">
<link rel="stylesheet" type="text/css" href="../css/bootstrap-multiselect.css?changed=20230107001" />
<link rel="stylesheet" type="text/css" href="../css/font-awesome.min.css?changed=2017083001">
@ -567,14 +567,30 @@
<script id="jackett-search-results" type="text/x-handlebars-template">
<hr />
<p>Your search was done using:
{{#each Indexers}}{{Name}}
<span class="indexers">Your search was done using:
{{#each Indexers}}
<span
{{#if Error}}
(<span title="{{Error}}"><b>Error</b></span>)
class="error"
{{else}}
({{Results}})
{{#ifCond Results 0}}
class="no-results"
{{/ifCond}}
{{/if}}
, {{/each}}
>
{{Name}}
{{#if Error}}
(<span title="{{Error}}"<b>Error</b></span>)
{{~else~}}
({{~Results~}})
{{~/if~}}
{{~#if @last~}}
.
{{~else~}}
,
{{~/if~}}
</span>
{{/each}}
</p>
<datalist id="jackett-search-saved-presets"></datalist>
<table id="jackett-search-results-datatable" class="dataTable compact cell-border hover stripe">