diff --git a/index.cgi b/index.cgi index e6f4872..f06f459 100755 --- a/index.cgi +++ b/index.cgi @@ -280,18 +280,19 @@ sub print_itemlist { $html .= "
\n"; $html .= "" . $item->{item_id} . "\n"; $html .= "" . strftime('%Y-%m-%d %H:%M:%S', localtime($item->{issued})) . "\n"; + my $mark_read_button = ""; + my $mark_later_button = ""; unless ($is_read) { - print_log("print_itemlist: \$q1=" . $q1->self_url . " (in loop)"); - $html .= "
Mark read
\n"; - $html .= "
Show later
\n"; + $mark_read_button = "
Mark read
\n"; + $mark_later_button = "
Show later
\n"; } + $html .= $mark_read_button; + $html .= $mark_later_button; $html .= "
" . $q->escapeHTML($item->{feed_title}) . "
\n"; $html .= "

" . $q->escapeHTML($item->{item_title}) . "

\n"; $html .= "
" . $scrubbed_content . "
\n"; - unless ($is_read) { - $html .= "
Mark read
\n"; - $html .= "
Show later
\n"; - } + $html .= $mark_read_button; + $html .= $mark_later_button; $html .= "
\n"; $html .= ""; print $html;