comparison gpp/templates/home.html @ 20:c0d0779b266f

Created a template tag for the latest weblinks: latest_weblinks. This necessitated adding a get_absolute_url function for the Link model along with a new view for it.
author Brian Neal <bgneal@gmail.com>
date Sun, 19 Apr 2009 20:41:37 +0000
parents aa2b41c5212b
children a5f27f25fa52
comparison
equal deleted inserted replaced
19:aa2b41c5212b 20:c0d0779b266f
1 {% extends 'base.html' %} 1 {% extends 'base.html' %}
2 {% load weblinks_tags %}
2 {% block title %}Home{% endblock %} 3 {% block title %}Home{% endblock %}
3 {% block content %} 4 {% block content %}
4 <h2>Welcome to SurfGuitar101!</h2> 5 <h2>Welcome to SurfGuitar101!</h2>
5 <p>You are looking at a test version of the new SurfGuitar101 website, dubbed <strong>SG101 2.0</strong>. 6 <p>You are looking at a test version of the new SurfGuitar101 website, dubbed <strong>SG101 2.0</strong>.
6 All major functionality is here except for the forums (which are still in development). 7 All major functionality is here except for the forums (which are still in development).
13 <p>Remember that this is a test site, and not everything is going to work. Nothing here is 14 <p>Remember that this is a test site, and not everything is going to work. Nothing here is
14 permanent. The site (content, user accounts, etc.) may be wiped at any time while we fix bugs and add features. 15 permanent. The site (content, user accounts, etc.) may be wiped at any time while we fix bugs and add features.
15 Also, I hope that the look and feel of this site can be greatly improved to something really cool! I'll need 16 Also, I hope that the look and feel of this site can be greatly improved to something really cool! I'll need
16 lots of help for this aspect, as I'm more of a coder than a designer.</p> 17 lots of help for this aspect, as I'm more of a coder than a designer.</p>
17 <div class="span-9"> 18 <div class="span-9">
18 Some stuff. 19 {% latest_weblinks %}
19 </div> 20 </div>
20 <div class="span-10 last"> 21 <div class="span-10 last">
21 Some more stuff. 22 Some more stuff.
22 </div> 23 </div>
23 {% endblock %} 24 {% endblock %}