aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>