summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-04-16 07:25:47 -0500
committerDan McGee <dan@archlinux.org>2011-04-16 07:25:47 -0500
commit96c59b1dc22b7318eadeaec11e7fed25829cecd5 (patch)
treef4eca127f1fdce281b42ada515ee92f4e2fed905
parent7a7d232c1b37ecedaaf7352cc11f7547f2d0f3e8 (diff)
downloadarchweb-96c59b1dc22b7318eadeaec11e7fed25829cecd5.tar.gz
archweb-96c59b1dc22b7318eadeaec11e7fed25829cecd5.zip
Add some simple template caching on developer dashboard
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--templates/devel/index.html16
1 files changed, 11 insertions, 5 deletions
diff --git a/templates/devel/index.html b/templates/devel/index.html
index 92332c7a..2eae0815 100644
--- a/templates/devel/index.html
+++ b/templates/devel/index.html
@@ -1,4 +1,6 @@
{% extends "base.html" %}
+{% load cache %}
+
{% block title %}Arch Linux - Developer Dashboard{% endblock %}
{% block content %}
@@ -98,6 +100,7 @@
</div><!-- #dev-dashboard -->
+{% cache 60 dev-dash-by-arch %}
<div id="dash-by-arch" class="box">
<h2>Stats by Architecture</h2>
@@ -124,9 +127,10 @@
{% endfor %}
</tbody>
</table>
+</div>{# #dash-by-arch #}
+{% endcache %}
-</div><!-- #dash-by-arch -->
-
+{% cache 60 dev-dash-by-repo %}
<div id="dash-by-repo" class="box">
<h2>Stats by Repository</h2>
@@ -153,9 +157,10 @@
{% endfor %}
</tbody>
</table>
+</div>{# dash-by-arch #}
+{% endcache %}
-</div><!-- dash-by-arch -->
-
+{% cache 60 dev-dash-by-maintainer %}
<div id="dash-by-maintainer" class="box">
<h2>Stats by Maintainer</h2>
@@ -191,8 +196,9 @@
{% endfor %}
</tbody>
</table>
+</div>{# #dash-by-maintainer #}
+{% endcache %}
-</div><!-- #dash-by-maintainer -->
{% load cdn %}{% jquery %}
<script type="text/javascript" src="/media/jquery.tablesorter.min.js"></script>
<script type="text/javascript" src="/media/archweb.js"></script>