aboutsummaryrefslogtreecommitdiffstats
path: root/root
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mageia.org>2010-10-03 16:36:52 +0000
committerOlivier Thauvin <nanardon@mageia.org>2010-10-03 16:36:52 +0000
commitbeb039f2c2aea1a18363f57e789a3dc84238e5de (patch)
treef2c0d30bb68ec07d900f483db24e8ca49ccc2f88 /root
parent5f978cf71067a1783caf01e64be05160b9b1e6d2 (diff)
downloadmgamirrors-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.tt1
-rw-r--r--root/html/pages/distrib/index.tt34
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>