IPS: Fix how we show EOL providers

There is no need to add a legend as I find it confusing. The change that
people are using an EOL is rather slim and so I don't to waste space.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2024-03-26 15:08:01 +00:00
parent c2df627c8c
commit 9dd2a4635f
12 changed files with 40 additions and 22 deletions

View File

@@ -1173,8 +1173,8 @@ END
# Handle providers which are not longer supported.
unless ($IDS::Ruleset::Providers{$provider}{'dl_url'}) {
# Mark this provider as unsupported.
$unsupported = "<img src='/blob.gif' alt='*'>";
$col = "bgcolor='$Header::colouryellow'";
$unsupported = $Lang::tr{'ids provider eol'};
}
# Choose icons for the checkboxes.
@@ -1203,7 +1203,7 @@ END
print <<END;
<tr>
<td width='33%' class='base' $col>$provider_name$unsupported</td>
<td width='33%' class='base' $col>$provider_name $unsupported</td>
<td width='30%' class='base' $col>$rulesetdate</td>
<td align='center' $col>
@@ -1254,32 +1254,24 @@ END
print "</table>\n";
# Section to add new elements or edit existing ones.
print <<END;
print <<END;
<br>
<hr>
<br>
<table width='100%'>
<form method='post' action='$ENV{'SCRIPT_NAME'}'>
<tr>
<td>
END
print "<img src='/blob.gif' alt='*'> $Lang::tr{'ids unsupported provider'}\n";
print <<END;
</td>
<td><div align='right'>
<form method='post' action='$ENV{'SCRIPT_NAME'}'>
<div align='right'>
END
# Only show this button if a ruleset provider is configured.
if (%used_providers) {
print "<input type='submit' name='RULESET' value='$Lang::tr{'ids customize ruleset'}'>\n";
}
# Only show this button if a ruleset provider is configured.
if (%used_providers) {
print "<input type='submit' name='RULESET' value='$Lang::tr{'ids customize ruleset'}'>\n";
}
print <<END;
<input type='submit' name='PROVIDERS' value='$Lang::tr{'ids add provider'}'>
</div></td>
</tr>
</form>
</table>
<input type='submit' name='PROVIDERS' value='$Lang::tr{'ids add provider'}'>
</div>
</form>
END
&Header::closebox();