diff options
author | Olivier Thauvin <nanardon@mageia.org> | 2010-10-03 16:36:52 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mageia.org> | 2010-10-03 16:36:52 +0000 |
commit | beb039f2c2aea1a18363f57e789a3dc84238e5de (patch) | |
tree | f2c0d30bb68ec07d900f483db24e8ca49ccc2f88 /root | |
parent | 5f978cf71067a1783caf01e64be05160b9b1e6d2 (diff) | |
download | mgamirrors-beb039f2c2aea1a18363f57e789a3dc84238e5de.tar mgamirrors-beb039f2c2aea1a18363f57e789a3dc84238e5de.tar.gz mgamirrors-beb039f2c2aea1a18363f57e789a3dc84238e5de.tar.bz2 mgamirrors-beb039f2c2aea1a18363f57e789a3dc84238e5de.tar.xz mgamirrors-beb039f2c2aea1a18363f57e789a3dc84238e5de.zip |
- add missing files
Diffstat (limited to 'root')
-rw-r--r-- | root/html/includes/menu.tt | 1 | ||||
-rw-r--r-- | root/html/pages/distrib/index.tt | 34 |
2 files changed, 35 insertions, 0 deletions
diff --git a/root/html/includes/menu.tt b/root/html/includes/menu.tt new file mode 100644 index 0000000..0130693 --- /dev/null +++ b/root/html/includes/menu.tt @@ -0,0 +1 @@ +<!-- $Id$ --> diff --git a/root/html/pages/distrib/index.tt b/root/html/pages/distrib/index.tt new file mode 100644 index 0000000..9102db0 --- /dev/null +++ b/root/html/pages/distrib/index.tt @@ -0,0 +1,34 @@ +<!-- $Id$ --> + +<form id="distform" action="[% c.uri_for() %]"> +[% FOREACH ver = c.model('Mirrors').version_list.keys.sort %] +[% IF loop.first %] +<select name="version"> +[% END %] +<option value="[% ver | html %]"[% 'selected="selected"' IF ver == c.req.param('version') %]>[% ver | html %]</option> +[% IF loop.last %] +</select> +[% END %] +[% END %] + +[% FOREACH arch = c.model('Mirrors').arch_list.keys.sort %] +[% IF loop.first %] +<select name="arch"> +[% END %] +<option value="[% arch | html %]"[% 'selected="selected"' IF arch == c.req.param('arch') %]>[% arch | html %]</option> +[% IF loop.last %] +</select> +[% END %] +[% END %] + +<input type="submit"> +</form> +[% c.prototype.observe_form( 'distform', { + url => c.uri_for('list'), + update => 'distlist', + frequency => 1, +} ) %] + +<div id="distlist"> +[% INCLUDE 'distrib/distrib.tt' %] +</div> |