Fix mirror page
[grml.org.git] / download / mirrors / index.html.tt2
index 1999433..2ad0650 100644 (file)
                [% FOREACH mirror IN mirrors.$region.keys.sort %]
                <p>[% mirror %] ([% mirrors.$region.$mirror.location %])</p>
                [% FOREACH type IN [ 'grml-http' 'grml-rsync' 'grml-ftp' ] %]
+        [% NEXT UNLESS mirrors.$region.$mirror.$type %]
                <ul>
             <li><a href="[% type.substr(5) %]://[% mirror %]/[% mirrors.$region.$mirror.$type %]">
-                [% type.substr(5) %]://[% mirror %][% mirrors.$region.$mirror.$type %]
+                [% type.substr(5) %]://[% mirror %]/[% mirrors.$region.$mirror.$type %]
                 </a>
             </li>
                </ul>