Mercurial > public > sg101
comparison gpp/templates/home.html @ 43:2763977301c2
Added support for caching. The avatar template tag now uses the cache.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 14 Jun 2009 20:25:22 +0000 |
parents | c018872385ea |
children | e249b5f9d180 |
comparison
equal
deleted
inserted
replaced
42:48b221d304c6 | 43:2763977301c2 |
---|---|
1 {% extends 'base.html' %} | 1 {% extends 'base.html' %} |
2 {% load bulletin_tags %} | 2 {% load bulletin_tags %} |
3 {% load news_tags %} | 3 {% load news_tags %} |
4 {% load weblinks_tags %} | 4 {% load weblinks_tags %} |
5 {% load downloads_tags %} | 5 {% load downloads_tags %} |
6 {% load cache %} | |
6 {% block title %}Home{% endblock %} | 7 {% block title %}Home{% endblock %} |
7 {% block custom_css %} | 8 {% block custom_css %} |
8 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/news.css" /> | 9 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/news.css" /> |
9 {% endblock %} | 10 {% endblock %} |
10 {% block custom_js %} | 11 {% block custom_js %} |
33 </div> | 34 </div> |
34 <p>Remember that this is a test site, and not everything is going to work. Nothing here is | 35 <p>Remember that this is a test site, and not everything is going to work. Nothing here is |
35 permanent. The site (content, user accounts, etc.) may be wiped at any time while we fix bugs and add features. | 36 permanent. The site (content, user accounts, etc.) may be wiped at any time while we fix bugs and add features. |
36 Also, I hope that the look and feel of this site can be greatly improved to something really cool! I'll need | 37 Also, I hope that the look and feel of this site can be greatly improved to something really cool! I'll need |
37 lots of help for this aspect, as I'm more of a coder than a designer.</p> | 38 lots of help for this aspect, as I'm more of a coder than a designer.</p> |
39 {% cache 600 home_content %} | |
38 {% current_bulletins %} | 40 {% current_bulletins %} |
39 {% current_news %} | 41 {% current_news %} |
40 <div class="span-9 append-1"> | 42 <div class="span-9 append-1"> |
41 {% latest_weblinks %} | 43 {% latest_weblinks %} |
42 </div> | 44 </div> |
43 <div class="span-9 last"> | 45 <div class="span-9 last"> |
44 {% latest_downloads %} | 46 {% latest_downloads %} |
45 </div> | 47 </div> |
48 {% endcache %} | |
46 {% endblock %} | 49 {% endblock %} |