diff --git a/logrotate/index.cgi b/logrotate/index.cgi
index 2a95f7cf9..7ee559eb6 100755
--- a/logrotate/index.cgi
+++ b/logrotate/index.cgi
@@ -52,9 +52,9 @@ foreach $c ($config{'sort_mode'} ?
local $p = &get_period($c->{'members'}) || $defp;
local $r = &find_value("postrotate", $c->{'members'});
$r =~ s/\n/
\n/g;
- push(@table, [ "".
+ push(@table, [ &ui_link("edit_log.cgi?idx=".$c->{'index'},
join(" ", map { "$_
" }
- @{$c->{'name'}})."",
+ @{$c->{'name'}}) ),
$text{'period_'.$p} ||
"$text{'index_notset'}",
$r ? "$r"
@@ -66,7 +66,7 @@ if (@table) {
print &ui_form_start("delete_logs.cgi", "post");
@links = ( &select_all_link("d"),
&select_invert_link("d"),
- "$text{'index_add'}" );
+ &ui_link("edit_log.cgi?new=1", $text{'index_add'}) );
print &ui_links_row(\@links);
@tds = ( "width=5", "nowrap valign=top", "valign=top", "valign=top" );
print &ui_columns_start([ "",
@@ -85,7 +85,8 @@ if (@table) {
}
else {
print "
$text{'index_none'}
\n"; - print "$text{'index_add'}
\n"; + print &ui_link("edit_log.cgi?new=1", $text{'index_add'}); + print "
\n"; } # Show buttons for editing global config and scheduling