diff options
author | Dan McGee <dan@archlinux.org> | 2011-04-16 07:25:47 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-04-16 07:25:47 -0500 |
commit | 96c59b1dc22b7318eadeaec11e7fed25829cecd5 (patch) | |
tree | f4eca127f1fdce281b42ada515ee92f4e2fed905 /templates/devel | |
parent | 7a7d232c1b37ecedaaf7352cc11f7547f2d0f3e8 (diff) |
Add some simple template caching on developer dashboard
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/devel')
-rw-r--r-- | templates/devel/index.html | 16 |
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> |