Fatal typo.
[www.jankratochvil.net.git] / project / Index.html.pl
index 571acf8..bee2eae 100755 (executable)
@@ -73,28 +73,19 @@ while (@platforms) {
                        (lc($item{$a}{"name"}) cmp lc($item{$b}{"name"}));
                        } map({ $item{$_}{"platform"} ne $platform_sym ? () : ($_); } keys(%item));
        for my $project (@projects) {
+               my $t="";
+
+               $t.="<h3>".a_href("/project/$project/",$item{$project}{"name"}.": ".$item{$project}{"summary"})."</h3>\n";
+               $t.="<blockquote>\n";
+                       $t.=$item{$project}{"description"};
+               $t.="</blockquote>\n";
+
                if ($item{$project}{"icon"}) {
-                       print <<"HERE";
-<table border="0" width="100%">
-       <col width="1*" />
-       <col width="0*" />
-       <tr>
-               <td align="left">
-HERE
+                       print rightimg $t,
+                                       "/project/$project/".$item{$project}{"icon"},$item{$project}{"name"}." Icon","a_href"=>"/project/$project/";
                        }
-               print "<h3>".a_href("/project/$project/",$item{$project}{"name"}.": ".$item{$project}{"summary"})."</h3>\n";
-               print "<blockquote>\n";
-                       print $item{$project}{"description"};
-               print "</blockquote>\n";
-               if ($item{$project}{"icon"}) {
-                       print <<"HERE";
-               </td>
-               <td align="right">@{[
-                               a_href("/project/$project/",img("/project/$project/".$item{$project}{"icon"},$item{$project}{"name"}." Icon"))
-                               ]}</td>
-       </tr>
-</table>
-HERE
+               else {
+                       print $t;
                        }
                }
        }