do not show section if empty
authorKevin Rosenberg <kevin@rosenberg.net>
Fri, 11 Jul 2008 00:34:46 +0000 (18:34 -0600)
committerKevin Rosenberg <kevin@rosenberg.net>
Fri, 11 Jul 2008 00:34:46 +0000 (18:34 -0600)
downloads.lisp

index e7b5897..33d8615 100644 (file)
                      base)))
       (display-page pkg-name pkg-base dl-base dl-url giturl gitweb
                     `(("Manual" ,doc-path)
-                      ("Source Code"
-                       (("Unix (.tar.gz)" ,tgz-path)
-                        ("Windows (.zip)" ,zip-path)))
+                      ,@(when (or (directory tgz-path) (directory zip-path))
+                              `(("Source Code"
+                                 (("Unix (.tar.gz)" ,tgz-path)
+                                  ("Windows (.zip)" ,zip-path)))))
                       ("Binaries"
                        (("Linux Binaries" ,linux-path)
                         ("Linux .deb Packages" ,deb-path)