[% db = c.model('Mirrors') %] [% mirrorslist = db.find_mirrors({ 'protocol' => c.req.param('protocol'), 'country' => c.req.param('country'), }) %] [% FOREACH item = mirrorslist %] [% IF loop.first %] [% END %] [% urls = db.find_urls({ "hostname" => item.hostname }) %] [% IF loop.last %]
Server name Location Bandwidth Source Urls
[% item.hostname | html %] [% IF item.name %] [% item.continent | html %], [% item.name | html %] [% END %] [% c.model('Mirrors').bandwidth_name(item.bandwidth) | html %] [% item.syncfrom | html %] [% IF item.public %] [% FOREACH u = urls %] [% IF u.valid %] [% u.protocol %] [% ELSE %] [% u.protocol %] [% END %] [% END %] [% ELSE %] Private access [% END %]
[% END %] [% END %]