summaryrefslogtreecommitdiffstats
path: root/templates/mirrors
diff options
context:
space:
mode:
Diffstat (limited to 'templates/mirrors')
-rw-r--r--templates/mirrors/index.html25
-rw-r--r--templates/mirrors/mirrorlist.txt13
2 files changed, 38 insertions, 0 deletions
diff --git a/templates/mirrors/index.html b/templates/mirrors/index.html
new file mode 100644
index 0000000..73949c6
--- /dev/null
+++ b/templates/mirrors/index.html
@@ -0,0 +1,25 @@
+{% extends "base.html" %}
+{% load package_extras %}
+{% block title %}Arch Linux - Generate Mirrorlist{% endblock %}
+
+{% block content %}
+<div class="box">
+ <h2 class="title">Generate Custom Mirrorlist</h2>
+ <form method="post">
+ <table>
+ <tr>
+ <td>Architecture</td>
+ {% td_input mirrorlist_form.arch %}
+ </tr>
+ <tr>
+ <td>Country</td>
+ {% td_input mirrorlist_form.country %}
+ </tr>
+ <tr>
+ <td><input type="submit" value="Generate" /></td>
+ </tr>
+ </table>
+ </form>
+</div>
+{% endblock %}
+
diff --git a/templates/mirrors/mirrorlist.txt b/templates/mirrors/mirrorlist.txt
new file mode 100644
index 0000000..891800d
--- /dev/null
+++ b/templates/mirrors/mirrorlist.txt
@@ -0,0 +1,13 @@
+{% comment %}
+Yes, ugly templates are ugly, but in order to keep line breaks where we want
+them, sacrifices have to be made. If editing this template, it is easiest to
+forget about where line breaks are happening until you are done getting the
+content right, and then go back later to fix it all up.
+{% endcomment %}{% autoescape off %}#
+# Arch Linux repository mirrorlist
+# Generated on {% now "Y-m-d" %}
+#{% for mirror_url in mirror_urls %}{% ifchanged %}
+
+# {{ mirror_url.mirror.country }}{% endifchanged %}
+#Server = {{ mirror_url.url}}$repo/os/{{ arch }}{% endfor %}
+{% endautoescape %}