diff options
author | Ismael Carnales <icarnales@gmail.com> | 2009-10-31 16:22:09 +0100 |
---|---|---|
committer | Ismael Carnales <icarnales@gmail.com> | 2009-11-10 01:24:46 +0100 |
commit | 6243f7ba662b39c25835c65b6641531e8c66c95f (patch) | |
tree | da6e5803ab41ed11096b160307f7ba9c921e5213 /templates/mirrors | |
parent | c1a197d29a692b7066ad12026f4bb9e92172f6b4 (diff) | |
download | archweb-6243f7ba662b39c25835c65b6641531e8c66c95f.tar.gz archweb-6243f7ba662b39c25835c65b6641531e8c66c95f.tar.xz |
added mirrors app from archweb_pub
Diffstat (limited to 'templates/mirrors')
-rw-r--r-- | templates/mirrors/index.html | 25 | ||||
-rw-r--r-- | templates/mirrors/mirrorlist.txt | 13 |
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 %} |