mirror of
https://github.com/webmin/webmin.git
synced 2025-08-16 14:51:18 +00:00
ui_link conversion -> syslog
This commit is contained in:
@ -30,8 +30,7 @@ if (!-r $config{'syslog_conf'}) {
|
||||
@links = ( );
|
||||
if ($access{'syslog'}) {
|
||||
$conf = &get_config();
|
||||
push(@links, "<a href='edit_log.cgi?new=1'>$text{'index_add'}</a>")
|
||||
if (!$access{'noedit'});
|
||||
push(@links, &ui_link("edit_log.cgi?new=1", $text{'index_add'}) ) if (!$access{'noedit'});
|
||||
}
|
||||
print &ui_links_row(\@links);
|
||||
print &ui_columns_start([
|
||||
@ -77,8 +76,8 @@ if ($access{'syslog'}) {
|
||||
push(@cols, $name);
|
||||
}
|
||||
else {
|
||||
push(@cols, "<a href='edit_log.cgi?".
|
||||
"idx=$c->{'index'}'>$name</a>");
|
||||
push(@cols, &ui_link("edit_log.cgi?".
|
||||
"idx=".$c->{'index'}, $name) );
|
||||
}
|
||||
if ($config{'tags'}) {
|
||||
push(@cols, $c->{'section'}->{'tag'} eq '*' ?
|
||||
@ -89,8 +88,8 @@ if ($access{'syslog'}) {
|
||||
push(@cols, join(" ; ",
|
||||
map { &html_escape($_) } @{$c->{'sel'}}));
|
||||
if ($c->{'file'} && -f $c->{'file'}) {
|
||||
push(@cols, "<a href='save_log.cgi?idx=$c->{'index'}&".
|
||||
"view=1'>$text{'index_view'}</a>\n");
|
||||
push(@cols, &ui_link("save_log.cgi?idx=".$c->{'index'}."&".
|
||||
"view=1", $text{'index_view'}) );
|
||||
}
|
||||
else {
|
||||
push(@cols, "");
|
||||
@ -120,8 +119,8 @@ if (@others) {
|
||||
push(@cols, $o->{'active'} ? $text{'yes'} :
|
||||
"<font color=#ff0000>$text{'no'}</font>");
|
||||
push(@cols, $o->{'desc'});
|
||||
push(@cols, "<a href='save_log.cgi?oidx=$o->{'mindex'}".
|
||||
"&omod=$o->{'mod'}&view=1'>$text{'index_view'}</a>");
|
||||
push(@cols, &ui_link("save_log.cgi?oidx=$o->{'mindex'}".
|
||||
"&omod=$o->{'mod'}&view=1", $text{'index_view'}) );
|
||||
print &ui_columns_row(\@cols);
|
||||
}
|
||||
}
|
||||
@ -136,8 +135,7 @@ foreach $e (&extra_log_files()) {
|
||||
}
|
||||
push(@cols, $text{'yes'});
|
||||
push(@cols, $e->{'desc'});
|
||||
push(@cols, "<a href='save_log.cgi?extra=$e->{'file'}&view=1'>".
|
||||
"$text{'index_view'}</a>");
|
||||
push(@cols, &ui_link("save_log.cgi?extra=$e->{'file'}&view=1", $text{'index_view'}) );
|
||||
print &ui_columns_row(\@cols);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user