mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
Fix to use a new set svg
icons for servers
This commit is contained in:
@ -16,7 +16,7 @@ foreach $h (@hosts) {
|
||||
next if (!$s);
|
||||
push(@titles, &server_name($s));
|
||||
push(@links, "edit_host.cgi?id=$h->{'id'}");
|
||||
push(@icons, "@{[&get_webprefix()]}/servers/images/$s->{'type'}.gif");
|
||||
push(@icons, "@{[&get_webprefix()]}/servers/images/$s->{'type'}.svg");
|
||||
$gothost{$h->{'id'}}++;
|
||||
}
|
||||
if (@links) {
|
||||
|
@ -84,7 +84,7 @@ print &ui_buttons_end();
|
||||
# Show hosts with the package
|
||||
print &ui_hr();
|
||||
print &ui_subheading($text{'edit_hosts'});
|
||||
@icons = map { "/servers/images/$_->{'type'}.gif" } @got;
|
||||
@icons = map { "/servers/images/$_->{'type'}.svg" } @got;
|
||||
@links = map { "edit_host.cgi?id=$_->{'id'}" } @got;
|
||||
@titles = map { ($_->{'desc'} ? $_->{'desc'} :
|
||||
$_->{'realhost'} ? "$_->{'realhost'}:$_->{'port'}" :
|
||||
|
@ -30,7 +30,7 @@ foreach $h (@hosts) {
|
||||
"$s->{'host'}:$s->{'port'}")."<br>".
|
||||
&text('index_count', $count));
|
||||
push(@links, "edit_host.cgi?id=$h->{'id'}");
|
||||
push(@icons, "@{[&get_webprefix()]}/servers/images/$s->{'type'}.gif");
|
||||
push(@icons, "@{[&get_webprefix()]}/servers/images/$s->{'type'}.svg");
|
||||
push(@installed, $count);
|
||||
$gothost{$h->{'id'}}++;
|
||||
}
|
||||
|
@ -94,8 +94,8 @@ foreach $h (@hosts) {
|
||||
if ($og) {
|
||||
local ($s) = grep { $_->{'id'} == $h->{'id'} } @servers;
|
||||
push(@icons, &get_webprefix() ?
|
||||
(&get_webprefix()."/servers/images/".$s->{'type'}.".gif") :
|
||||
("../servers/images/".$s->{'type'}.".gif"));
|
||||
(&get_webprefix()."/servers/images/".$s->{'type'}.".svg") :
|
||||
("../servers/images/".$s->{'type'}.".svg"));
|
||||
push(@links, "edit_host.cgi?id=$h->{'id'}");
|
||||
push(@titles, $s->{'desc'} ? $s->{'desc'} : $s->{'host'});
|
||||
}
|
||||
|
@ -409,8 +409,8 @@ foreach $h (@hosts) {
|
||||
if ($ou) {
|
||||
local ($s) = grep { $_->{'id'} == $h->{'id'} } @servers;
|
||||
push(@icons, &get_webprefix() ?
|
||||
(&get_webprefix()."/servers/images/".$s->{'type'}.".gif") :
|
||||
("../servers/images/".$s->{'type'}.".gif"));
|
||||
(&get_webprefix()."/servers/images/".$s->{'type'}.".svg") :
|
||||
("../servers/images/".$s->{'type'}.".svg"));
|
||||
push(@links, "edit_host.cgi?id=$h->{'id'}");
|
||||
push(@titles, $s->{'desc'} ? $s->{'desc'} : $s->{'host'});
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ foreach $h (@hosts) {
|
||||
push(@titles, &server_name($s));
|
||||
push(@links, $link);
|
||||
push(@icons, &get_webprefix()."/servers/images/".
|
||||
$s->{'type'}.".gif");
|
||||
$s->{'type'}.".svg");
|
||||
push(@installed, @{$h->{'packages'}});
|
||||
$gothost{$h->{'id'}}++;
|
||||
}
|
||||
|
@ -186,7 +186,7 @@ print "</tr></table>\n";
|
||||
# Show hosts with the module or theme
|
||||
print &ui_hr();
|
||||
print &ui_subheading($text{'edit_hosts'});
|
||||
@icons = map { "/servers/images/$_->{'type'}.gif" } @got;
|
||||
@icons = map { "/servers/images/$_->{'type'}.svg" } @got;
|
||||
@links = map { "edit_host.cgi?id=$_->{'id'}" } @got;
|
||||
@titles = map { &server_name($_).
|
||||
($_->{'module'}->{'version'} ? " ($text{'host_version2'} $_->{'module'}->{'version'})" : "") } @got;
|
||||
|
@ -25,7 +25,7 @@ foreach $h (@hosts) {
|
||||
push(@titles, &server_name($s)."<br>".
|
||||
&text('index_version', $h->{'version'}));
|
||||
push(@links, "edit_host.cgi?id=$h->{'id'}");
|
||||
push(@icons, "@{[&get_webprefix()]}/servers/images/$s->{'type'}.gif");
|
||||
push(@icons, "@{[&get_webprefix()]}/servers/images/$s->{'type'}.svg");
|
||||
$gothost{$h->{'id'}}++;
|
||||
}
|
||||
if (@links) {
|
||||
|
@ -147,7 +147,7 @@ print "</tr></table>\n";
|
||||
# Show hosts with the group
|
||||
print &ui_hr();
|
||||
print &ui_subheading($text{'group_hosts'});
|
||||
@icons = map { "/servers/images/$_->{'type'}.gif" } @got;
|
||||
@icons = map { "/servers/images/$_->{'type'}.svg" } @got;
|
||||
@links = map { "edit_host.cgi?id=$_->{'id'}" } @got;
|
||||
@titles = map { &server_name($_) } @got;
|
||||
&icons_table(\@links, \@titles, \@icons);
|
||||
|
@ -235,7 +235,7 @@ print "</tr></table>\n";
|
||||
# Show hosts with the module or theme
|
||||
print &ui_hr();
|
||||
print &ui_subheading($text{'edit_hosts'});
|
||||
@icons = map { "/servers/images/$_->{'type'}.gif" } @got;
|
||||
@icons = map { "/servers/images/$_->{'type'}.svg" } @got;
|
||||
@links = map { "edit_host.cgi?id=$_->{'id'}" } @got;
|
||||
@titles = map { &server_name($_).
|
||||
($_->{'module'}->{'version'} ? " ($text{'host_version2'} $_->{'module'}->{'version'})" : "") } @got;
|
||||
|
@ -211,7 +211,7 @@ print "</tr></table>\n";
|
||||
# Show hosts with the user
|
||||
print &ui_hr();
|
||||
print &ui_subheading($text{'user_hosts'});
|
||||
@icons = map { "/servers/images/$_->{'type'}.gif" } @got;
|
||||
@icons = map { "/servers/images/$_->{'type'}.svg" } @got;
|
||||
@links = map { "edit_host.cgi?id=$_->{'id'}" } @got;
|
||||
@titles = map { &server_name($_) } @got;
|
||||
&icons_table(\@links, \@titles, \@icons);
|
||||
|
@ -27,7 +27,7 @@ foreach $h (@hosts) {
|
||||
push(@titles, &server_name($s)."<br>".
|
||||
&text('index_version', $h->{'version'}));
|
||||
push(@links, "edit_host.cgi?id=$h->{'id'}");
|
||||
push(@icons, "@{[&get_webprefix()]}/servers/images/$s->{'type'}.gif");
|
||||
push(@icons, "@{[&get_webprefix()]}/servers/images/$s->{'type'}.svg");
|
||||
$gothost{$h->{'id'}}++;
|
||||
}
|
||||
if (@links) {
|
||||
|
Reference in New Issue
Block a user