summaryrefslogtreecommitdiffstats
path: root/templates/mirrors
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-11-13 04:37:08 +0100
committerDan McGee <dan@archlinux.org>2012-11-13 04:37:08 +0100
commit92837c93acc66056391dd0b98515b89f8fc49691 (patch)
tree0c4019df6b0bf3913b8956885782f493a6049d53 /templates/mirrors
parent2339f42ef0f95e55d99be47ed2327c3d127ebc29 (diff)
downloadarchweb-92837c93acc66056391dd0b98515b89f8fc49691.tar.gz
archweb-92837c93acc66056391dd0b98515b89f8fc49691.tar.xz
Prefetch the available protocols on the mirror overview page
Otherwise we are doing one query per mirror, which at this point is over 100 separate queries. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/mirrors')
-rw-r--r--templates/mirrors/mirrors.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/mirrors/mirrors.html b/templates/mirrors/mirrors.html
index 0950520..c83d0d4 100644
--- a/templates/mirrors/mirrors.html
+++ b/templates/mirrors/mirrors.html
@@ -29,7 +29,7 @@
<td>{{ mirror.get_tier_display }}</td>
<td>{% if mirror.country %}<img src="{{ mirror.country.flag }}" alt=""/> {% endif %}{{ mirror.country.name }}</td>
<td>{{ mirror.isos|yesno|capfirst }}</td>
- <td class="wrap">{{ mirror.supported_protocols|join:", " }}</td>
+ <td class="wrap">{{ mirror.protocols|join:", " }}</td>
{% if user.is_authenticated %}
<td>{{ mirror.public|yesno|capfirst }}</td>
<td>{{ mirror.active|yesno|capfirst }}</td>