mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-11 11:35:54 +02:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user