regluit/frontend/templates/notification/notice_template.html

44 lines
2.0 KiB
HTML
Raw Normal View History

{% comment %}
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
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.
{% endcomment %}
<div class="comments clearfix">
<div class="comments_info clearfix">
<div class="comments_book">
{% block comments_book %}
{% comment %}
Your cover image goes here. e.g.:
<a href="{% url work work.id %}"><img src="{{ comment.content_object.cover_image_small }}" alt="cover image for {{ work.title }}" /></a>
modify as needed for your local context variables
{% endcomment %}
{% endblock %}
</div>
<span class="comments_graphical">{% block comments_graphical %}{% comment %}
This is where you put your headline.
Brief text, graphics-oriented info like user avatars and campaign status icons.
e.g.:
<a href="{% url supporter supporter %}">
{% 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 %}
</a>
<span><a href="{% url supporter supporter %}">{{ comment.user.username }}</a> on <a href="{{ work_url }}?tab=2">{{ comment.content_object.title }}</a></span>{% endcomment %}{% endblock %}
<br /><i>{% now "M d Y, h:i A"%}</i><br />
</span>
<hr />
<span class="comments_textual">
{% 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 %}
</span>
</div>
</div>