Mercurial > public > sg101
comparison gpp/templates/potd/view.html @ 310:daa2916f5b34
Fixing 145; New url tag behavior (forwards compatibility) in Django 1.3.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 20 Jan 2011 04:03:48 +0000 |
parents | ded03f2513e9 |
children | 88b2b9cb8c1f |
comparison
equal
deleted
inserted
replaced
309:8a0bae48b6ca | 310:daa2916f5b34 |
---|---|
1 {% extends 'base.html' %} | 1 {% extends 'base.html' %} |
2 {% load url from future %} | |
2 {% load comment_tags %} | 3 {% load comment_tags %} |
3 {% load script_tags %} | 4 {% load script_tags %} |
4 {% block title %}Photo Of The Day{% endblock %} | 5 {% block title %}Photo Of The Day{% endblock %} |
5 {% block custom_css %} | 6 {% block custom_css %} |
6 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/potd.css" /> | 7 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/potd.css" /> |
21 <div class="potd-details"> | 22 <div class="potd-details"> |
22 <img src="{{ potd.photo.url }}" alt="{{ potd.caption }}" title="{{ potd.caption }}" /> | 23 <img src="{{ potd.photo.url }}" alt="{{ potd.caption }}" title="{{ potd.caption }}" /> |
23 <p class="caption">{{ potd.caption }}</p> | 24 <p class="caption">{{ potd.caption }}</p> |
24 <p class="details"> | 25 <p class="details"> |
25 Submitted by | 26 Submitted by |
26 <a href="{% url bio-view_profile username=potd.user.username %}">{{ potd.user.username }}</a> | 27 <a href="{% url 'bio-view_profile' username=potd.user.username %}">{{ potd.user.username }}</a> |
27 on {{ potd.date_added|date:"d F Y" }}.<br /> | 28 on {{ potd.date_added|date:"d F Y" }}.<br /> |
28 This photo has been Photo of the Day {{ potd.potd_count }} time{{ potd.potd_count|pluralize }}. | 29 This photo has been Photo of the Day {{ potd.potd_count }} time{{ potd.potd_count|pluralize }}. |
29 </p> | 30 </p> |
30 <p class="description">{{ potd.description|safe }}</p> | 31 <p class="description">{{ potd.description|safe }}</p> |
31 <p class="details"> | 32 <p class="details"> |
41 <p>Leave a comment?</p> | 42 <p>Leave a comment?</p> |
42 {% render_comment_form for potd %} | 43 {% render_comment_form for potd %} |
43 <br /> | 44 <br /> |
44 {% else %} | 45 {% else %} |
45 <p>Comments are allowed only on today's photo of the day. If you'd like to share your thoughts on this photo | 46 <p>Comments are allowed only on today's photo of the day. If you'd like to share your thoughts on this photo |
46 with the site staff, you can <a href="{% url contact-form %}">contact us directly</a>.</p> | 47 with the site staff, you can <a href="{% url 'contact-form' %}">contact us directly</a>.</p> |
47 {% endif %} | 48 {% endif %} |
48 {% else %} | 49 {% else %} |
49 <p>We're sorry, there doesn't seem to be a photo of the day right now.</p> | 50 <p>We're sorry, there doesn't seem to be a photo of the day right now.</p> |
50 {% endif %} | 51 {% endif %} |
51 {% endblock %} | 52 {% endblock %} |