update to reflect API changes
[gae-samples.git] / django_example / templates / greetings / index.html
blob58632fe2b08d8f3e158e5c98e6ad24f1dec42a20
1 {%extends "base.html"%}
2 {% block body %}
3 <div id="wuz-greetings-index" class="g-section g-tpl-280-alt">
4 <div class="g-unit g-first">
5 <div class="wuz-sidebox">
6 <a href="{% url controllers.websites.create %}">Add Your Website!</a>
7 <ul>
8   <li>Receive friendly notes</li>
9   <li>Track notes via RSS</li>
10   <li>Add content to your site!</li>
11 </ul>
12 </div>
14 <div class="wuz-sidebox">
15 <a href="{% url controllers.websites.index %}">Website Index</a>
16 </div>
17 </div>
19 <div id="wuz-greetings" class="g-unit">
20 <ul>
21 {% if greetings %}
22 {% for greeting in greetings %}
23 <li>
24 <cite>{{ greeting.author }}</cite>
25 signed <a href="{% url controllers.websites.view greeting.website.key.id %}">{{ greeting.website.name }}'s Guestbook</a>
26 <div>
27 {{ greeting.created|date:"F jS f a" }}
28 </div>
29 <p>
30 {{ greeting.content|escape }}
31 </p>
32 </li>
33 {% endfor %}
34 {% else %}
35 <li>No greetings yet</li>
36 {% endif %}
37 </ul>
38 </div>
39 </div>
40 {% endblock %}