summaryrefslogtreecommitdiffstats
path: root/templates/mirrors
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-12-14 18:38:20 +0100
committerDan McGee <dan@archlinux.org>2013-12-14 18:38:20 +0100
commit5d74a99c6b8fbbd19ad441a74d835382025da522 (patch)
tree65eb619e10146720efc1a2f48bbb9acbba506f04 /templates/mirrors
parent97ca3f7286a533c7a5e7935c034578c06235571a (diff)
downloadarchweb-5d74a99c6b8fbbd19ad441a74d835382025da522.tar.gz
archweb-5d74a99c6b8fbbd19ad441a74d835382025da522.tar.xz
Don't list downstream mirrors one per line
This looks really crazy on our current Tier 1 mirrors, as some of them have tons of downstream mirrors. Instead, do what we did on the package details page and allow wrapping of the comma-separated list. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/mirrors')
-rw-r--r--templates/mirrors/mirror_details.html11
1 files changed, 5 insertions, 6 deletions
diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html
index 3770eae..aa0a964 100644
--- a/templates/mirrors/mirror_details.html
+++ b/templates/mirrors/mirror_details.html
@@ -71,14 +71,13 @@
<tr>
<th>Downstream:</th>
{% with mirror.downstream as ds_mirrors %}
- <td>{% if ds_mirrors %}
+ <td class="wrap">{% if ds_mirrors %}
{% for ds in ds_mirrors %}
<a href="{{ ds.get_absolute_url }}"
- title="Mirror details for {{ ds.name }}">{{ ds.name }}</a>
- {% if not ds.active %}<span class="testing-dep">(inactive)</span>{% endif %}
- {% if not ds.public %}<span class="testing-dep">(private)</span>{% endif %}
- <br/>
- {% endfor %}
+ title="Mirror details for {{ ds.name }}">{{ ds.name }}</a>{% comment %}
+ {% endcomment %}{% if not ds.active %} <span class="testing-dep">(inactive)</span>{% endif %}{% comment %}
+ {% endcomment %}{% if not ds.public %} <span class="testing-dep">(private)</span>{% endif %}{% comment %}
+ {% endcomment %}{% if not forloop.last %}, {% endif %}{% endfor %}
{% else %}None{% endif %}</td>
{% endwith %}
</tr>