remove the "0 new", it's not very useful
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Thu, 7 Sep 2006 23:54:37 +0000 (23:54 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Thu, 7 Sep 2006 23:54:37 +0000 (23:54 +0000)
IkiWiki/Plugin/aggregate.pm

index d0d7f421798d9dba9ada5107f6e2b58fd517b674..f34871f4a08a67beb23ddae9ff07b9562ebf15a2 100644 (file)
@@ -100,7 +100,9 @@ sub preprocess (@) { #{{{
 
        return "<a href=\"".$feed->{url}."\">".$feed->{name}."</a>: ".
               "<i>".$feed->{message}."</i> (".$feed->{numposts}.
-              " stored posts; ".$feed->{newposts}." new)";
+              " stored posts".
+              ($feed->{newposts} ? "; ".$feed->{newposts}." new" : "").
+              ")";
 } # }}}
 
 sub delete (@) { #{{{