Mercurial > public > sg101
comparison gpp/templates/home.html @ 166:8acf5be27f18
Implement #50, add a template tag to display the latest poll and add to the home page.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 17 Jan 2010 20:24:01 +0000 |
parents | 416353def4ca |
children | b1766b1bda45 |
comparison
equal
deleted
inserted
replaced
165:952e05cb3d80 | 166:8acf5be27f18 |
---|---|
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 poll_tags %} | |
6 {% load forum_tags %} | 7 {% load forum_tags %} |
7 {% load cache %} | 8 {% load cache %} |
8 {% block title %}Home{% endblock %} | 9 {% block title %}Home{% endblock %} |
9 {% block custom_css %} | 10 {% block custom_css %} |
10 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/news.css" /> | 11 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/news.css" /> |
43 {% new_posts %} | 44 {% new_posts %} |
44 {% cache 3600 home_news %} | 45 {% cache 3600 home_news %} |
45 {% current_news %} | 46 {% current_news %} |
46 {% endcache %} | 47 {% endcache %} |
47 {% cache 3600 home_new_stuff %} | 48 {% cache 3600 home_new_stuff %} |
49 {% latest_poll %} | |
48 <div class="span-9 append-1"> | 50 <div class="span-9 append-1"> |
49 {% latest_weblinks %} | 51 {% latest_weblinks %} |
50 </div> | 52 </div> |
51 <div class="span-9 last"> | 53 <div class="span-9 last"> |
52 {% latest_downloads %} | 54 {% latest_downloads %} |