mirror of
https://github.com/webmin/webmin.git
synced 2025-08-24 06:45:35 +00:00
ui_link conversion
This commit is contained in:
@ -66,7 +66,7 @@ if (@glist && %gcan) {
|
|||||||
|
|
||||||
if ($in{'group'}) {
|
if ($in{'group'}) {
|
||||||
# Show all current members
|
# Show all current members
|
||||||
@grid = map { $_ =~ /^\@(.*)$/ ? "<a href='edit_group.cgi?group=$1'><i>$1</i></a>" : "<a href='edit_user.cgi?user=$_'>$_</a>" }
|
@grid = map { $_ =~ /^\@(.*)$/ ? ui_link("edit_group.cgi?group=$1", "<i>$1</i>") : ui_link("edit_user.cgi?user=$_", $_) }
|
||||||
@{$group{'members'}};
|
@{$group{'members'}};
|
||||||
if (@grid) {
|
if (@grid) {
|
||||||
print &ui_table_row($text{'gedit_members'},
|
print &ui_table_row($text{'gedit_members'},
|
||||||
@ -104,11 +104,10 @@ foreach $c (sort { $b cmp $a } @cats) {
|
|||||||
$label = "";
|
$label = "";
|
||||||
if ($access{'acl'} && $in{'group'}) {
|
if ($access{'acl'} && $in{'group'}) {
|
||||||
# Show link for editing ACL
|
# Show link for editing ACL
|
||||||
$label = sprintf "<a href='edit_acl.cgi?".
|
$label = ui_link("edit_acl.cgi?" .
|
||||||
"mod=%s&%s=%s'>%s</a>\n",
|
"mod=" . urlize($m->{'dir'}) .
|
||||||
&urlize($m->{'dir'}),
|
"&group=". urlize($in{'group'}),
|
||||||
"group", &urlize($in{'group'}),
|
$m->{'desc'}) . "\n";
|
||||||
$m->{'desc'};
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$label = $m->{'desc'};
|
$label = $m->{'desc'};
|
||||||
|
Reference in New Issue
Block a user