diff options
author | Olivier Thauvin <nanardon@mageia.org> | 2010-10-02 13:31:35 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mageia.org> | 2010-10-02 13:31:35 +0000 |
commit | a9ade04230fc99e5d12e7bd1af1e2dd31907d15a (patch) | |
tree | 32f25d1699e483eb219400e44e2e96d782feb7ea /root/html/includes/mirrorslist.tt | |
parent | 6f42c4ffb976cdffa257a09e4dcb33119750abfc (diff) | |
download | mgamirrors-a9ade04230fc99e5d12e7bd1af1e2dd31907d15a.tar mgamirrors-a9ade04230fc99e5d12e7bd1af1e2dd31907d15a.tar.gz mgamirrors-a9ade04230fc99e5d12e7bd1af1e2dd31907d15a.tar.bz2 mgamirrors-a9ade04230fc99e5d12e7bd1af1e2dd31907d15a.tar.xz mgamirrors-a9ade04230fc99e5d12e7bd1af1e2dd31907d15a.zip |
- handle distributions, protocol andothers things
Diffstat (limited to 'root/html/includes/mirrorslist.tt')
-rw-r--r-- | root/html/includes/mirrorslist.tt | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/root/html/includes/mirrorslist.tt b/root/html/includes/mirrorslist.tt index fd855f5..0986717 100644 --- a/root/html/includes/mirrorslist.tt +++ b/root/html/includes/mirrorslist.tt @@ -5,6 +5,13 @@ <option value="[% country.code %]" [% "selected=select" IF country.code == c.req.param('country') %]>[% country.name | html %]</option> [% END %] </select> +<select name="protocol"> +<option value="">--</option> +[% FOREACH p = c.model('Mirrors').protocol_list %] +<option value="[% p %]" [% "selected=select" IF p == c.req.param('protocol') %]>[% p %]</option> +[% END %] +</select> + <input type="submit"> </form> @@ -16,7 +23,13 @@ [% FOREACH item = mirrorslist %] [% IF loop.first %] <table border=1> -<tr><th>Server name</th><th>Location</th><th>Urls</th><tr> +<tr> + <th>Server name</th> + <th>Location</th> + <th>Bandwidth</th> + <th>Source</th> + <th>Urls</th> +<tr> [% END %] <tr> [% urls = db.find_urls({ "hostname" => item.hostname }) %] @@ -29,8 +42,22 @@ [% END %] </td> <td> +[% c.model('Mirrors').bandwidth_name(item.bandwidth) | html %] +</td> +<td> +[% item.syncfrom | html %] +</td> +<td> +[% IF item.public %] [% FOREACH u = urls %] +[% IF u.valid %] <a href="[% u.url %]">[% u.protocol %]</a> +[% ELSE %] +<span style="color: red">[% u.protocol %]</span> +[% END %] +[% END %] +[% ELSE %] +Private access [% END %] </td> </tr> |