2012-07-09 19:49:36 +00:00
|
|
|
{% comment %}
|
2012-07-24 17:52:39 +00:00
|
|
|
django-notification and {% with %} play poorly together. Don't use {% with %}
|
|
|
|
in child templates. Also don't do {% url something as something %}; it doesn't work and I'm not clear why.
|
2012-07-16 17:47:18 +00:00
|
|
|
|
2012-07-24 17:52:39 +00:00
|
|
|
Exception: you can include notification/sharing_block.html into a notice.html to have
|
2012-07-16 17:47:18 +00:00
|
|
|
tweet, FB, email sharing show up. Include a {% url work your.local.work.id as work_url %} immediately prior.
|
2012-07-09 19:49:36 +00:00
|
|
|
{% endcomment %}
|
2012-03-29 18:46:06 +00:00
|
|
|
<div class="comments clearfix">
|
2012-05-15 01:09:29 +00:00
|
|
|
<div class="comments_info clearfix">
|
|
|
|
<div class="comments_book">
|
2012-07-09 15:33:21 +00:00
|
|
|
{% block comments_book %}
|
|
|
|
{% comment %}
|
|
|
|
Your cover image goes here. e.g.:
|
2012-07-24 17:52:39 +00:00
|
|
|
<a href="{% url work work.id %}"><img src="{{ comment.content_object.cover_image_small }}" alt="cover image for {{ work.title }}" /></a>
|
2012-07-09 15:33:21 +00:00
|
|
|
modify as needed for your local context variables
|
|
|
|
{% endcomment %}
|
|
|
|
{% endblock %}
|
2012-05-15 01:09:29 +00:00
|
|
|
</div>
|
2012-07-16 18:46:45 +00:00
|
|
|
<span class="comments_graphical">{% block comments_graphical %}{% comment %}
|
2012-07-09 15:33:21 +00:00
|
|
|
This is where you put your headline.
|
|
|
|
Brief text, graphics-oriented info like user avatars and campaign status icons.
|
|
|
|
e.g.:
|
|
|
|
{% if supporter.profile.pic_url %}
|
|
|
|
<img class="user-avatar" src="{{ comment.user.profile.pic_url }}" height="50" width="50" alt="Picture of {{ comment.user }}" title="{{ comment.user }}" />
|
|
|
|
{% else %}
|
|
|
|
<img class="user-avatar" src="/static/images/header/avatar.png" height="50" width="50" alt="Generic Ungluer Avatar" title="Ungluer" />
|
|
|
|
{% endif %}
|
2013-03-14 19:33:00 +00:00
|
|
|
<a href="{% url supporter comment.user %}">
|
2012-07-09 15:33:21 +00:00
|
|
|
</a>
|
2013-03-14 19:33:00 +00:00
|
|
|
<span><a href="{% url supporter comment.user %}">{{ comment.user.username }}</a> on <a href="{{ work_url }}?tab=2">{{ comment.content_object.title }}</a></span>{% endcomment %}{% endblock %}
|
2012-07-09 19:47:38 +00:00
|
|
|
<br /><i>{% now "M d Y, h:i A"%}</i><br />
|
2012-07-16 18:46:45 +00:00
|
|
|
</span>
|
|
|
|
<hr />
|
2012-07-22 18:53:53 +00:00
|
|
|
<span class="comments_textual">
|
2012-07-09 19:47:38 +00:00
|
|
|
{% block comments_textual %}
|
|
|
|
{% comment %}
|
|
|
|
This is where you put the textual part of your message.
|
|
|
|
Examples include the text of comments, details about credit card charges, etc.
|
|
|
|
{% endcomment %}
|
|
|
|
{% endblock %}
|
2012-07-16 18:46:45 +00:00
|
|
|
</span>
|
2012-05-15 01:09:29 +00:00
|
|
|
</div>
|
|
|
|
|
2012-03-29 18:46:06 +00:00
|
|
|
</div>
|