From 6243f7ba662b39c25835c65b6641531e8c66c95f Mon Sep 17 00:00:00 2001 From: Ismael Carnales Date: Sat, 31 Oct 2009 13:22:09 -0200 Subject: added mirrors app from archweb_pub --- templates/mirrors/index.html | 25 +++++++++++++++++++++++++ templates/mirrors/mirrorlist.txt | 13 +++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 templates/mirrors/index.html create mode 100644 templates/mirrors/mirrorlist.txt (limited to 'templates') diff --git a/templates/mirrors/index.html b/templates/mirrors/index.html new file mode 100644 index 00000000..73949c6f --- /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 %} +
+

Generate Custom Mirrorlist

+
+ + + + {% td_input mirrorlist_form.arch %} + + + + {% td_input mirrorlist_form.country %} + + + + +
Architecture
Country
+
+
+{% endblock %} + diff --git a/templates/mirrors/mirrorlist.txt b/templates/mirrors/mirrorlist.txt new file mode 100644 index 00000000..891800d1 --- /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 %} -- cgit v1.2.3