comparison gpp/templates/potd/view.html @ 1:dbd703f7d63a

Initial import of sg101 stuff from private repository.
author gremmie
date Mon, 06 Apr 2009 02:43:12 +0000
parents
children b6263ac72052
comparison
equal deleted inserted replaced
0:900ba3c7b765 1:dbd703f7d63a
1 {% extends 'base.html' %}
2 {% load comment_tags %}
3 {% block title %}Photo Of The Day{% endblock %}
4 {% block custom_css %}
5 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/potd.css" />
6 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/comments.css" />
7 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}js/markitup/skins/markitup/style.css" />
8 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}js/markitup/sets/markdown/style.css" />
9 {% endblock %}
10 {% block custom_js %}
11 <script type="text/javascript" src="{{ MEDIA_URL }}js/jquery-1.2.6.min.js"></script>
12 <script type="text/javascript" src="{{ MEDIA_URL }}js/comments.js"></script>
13 <script type="text/javascript" src="{{ MEDIA_URL }}js/markitup/jquery.markitup.pack.js"></script>
14 <script type="text/javascript" src="{{ MEDIA_URL }}js/markitup/sets/markdown/set.js"></script>
15 {% endblock %}
16 {% block content %}
17 <h2>Photo Of The Day</h2>
18 <h3>{% now "l, F d, Y" %}</h3>
19 <div class="potd-details">
20 {% if potd %}
21 <img src="{{ potd.photo.url }}" alt="{{ potd.caption }}" title="{{ potd.caption }}" />
22 <p class="caption">{{ potd.caption }}</p>
23 <p class="details">
24 Submitted by
25 <a href="{% url bio-view_profile username=potd.user.username %}">{{ potd.user.username }}</a>
26 on {{ potd.date_added|date:"d F Y" }}.<br />
27 This photo has been Photo of the Day {{ potd.potd_count }} time{{ potd.potd_count|pluralize }}.
28 </p>
29 <p class="description">{{ potd.description }}</p>
30 <p class="details">
31 If you would like us to feature your photo, send it along with your username, a title, and
32 short description to <a href="mailto:admin@surfguitar101.com">admin@surfguitar101.com</a>.
33 </p>
34 {% get_comment_count for potd as comment_count %}
35 <p>This photo has <span id="comment-count">{{ comment_count }}</span> comment{{ comment_count|pluralize }}.</p>
36 <hr />
37 </div>
38 {% render_comment_list potd %}
39 {% if potd.can_comment_on %}
40 <p>Leave a comment?</p>
41 {% render_comment_form for potd %}
42 {% else %}
43 <p>Comments are allowed only on today's photo of the day. If you'd like to share your thoughts on this photo
44 with the site staff, you can <a href="{% url contact-form %}">contact us directly</a>.</p>
45 {% endif %}
46 {% else %}
47 <p>We're sorry, there doesn't seem to be a photo of the day right now.</p>
48 {% endif %}
49 {% endblock %}