Update frontend/templates/notification/notice_template.html
parent
0d8604e1bd
commit
b691c8f896
|
@ -1,8 +1,8 @@
|
||||||
{% comment %}
|
{% comment %}
|
||||||
django-notification {% with %} play poorly together. Don't use {% with %}
|
django-notification and {% with %} play poorly together. Don't use {% with %}
|
||||||
in child templates.
|
in child templates. Also don't do {% url something as something %}; it doesn't work and I'm not clear why.
|
||||||
|
|
||||||
You can include notification/sharing_block.html into a notice.html to have
|
Exception: you can include notification/sharing_block.html into a notice.html to have
|
||||||
tweet, FB, email sharing show up. Include a {% url work your.local.work.id as work_url %} immediately prior.
|
tweet, FB, email sharing show up. Include a {% url work your.local.work.id as work_url %} immediately prior.
|
||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
<div class="comments clearfix">
|
<div class="comments clearfix">
|
||||||
|
@ -11,7 +11,7 @@ tweet, FB, email sharing show up. Include a {% url work your.local.work.id as w
|
||||||
{% block comments_book %}
|
{% block comments_book %}
|
||||||
{% comment %}
|
{% comment %}
|
||||||
Your cover image goes here. e.g.:
|
Your cover image goes here. e.g.:
|
||||||
<a href="{{ work_url }}"><img src="{{ comment.content_object.cover_image_small }}" alt="cover image for {{ work.title }}" /></a>
|
<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
|
modify as needed for your local context variables
|
||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -20,14 +20,14 @@ tweet, FB, email sharing show up. Include a {% url work your.local.work.id as w
|
||||||
This is where you put your headline.
|
This is where you put your headline.
|
||||||
Brief text, graphics-oriented info like user avatars and campaign status icons.
|
Brief text, graphics-oriented info like user avatars and campaign status icons.
|
||||||
e.g.:
|
e.g.:
|
||||||
<a href="{{ supporter_url }}">
|
<a href="{% url supporter supporter %}">
|
||||||
{% if supporter.profile.pic_url %}
|
{% 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 }}" />
|
<img class="user-avatar" src="{{ comment.user.profile.pic_url }}" height="50" width="50" alt="Picture of {{ comment.user }}" title="{{ comment.user }}" />
|
||||||
{% else %}
|
{% else %}
|
||||||
<img class="user-avatar" src="/static/images/header/avatar.png" height="50" width="50" alt="Generic Ungluer Avatar" title="Ungluer" />
|
<img class="user-avatar" src="/static/images/header/avatar.png" height="50" width="50" alt="Generic Ungluer Avatar" title="Ungluer" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
<span><a href="{{ supporter_url }}">{{ comment.user.username }}</a> on <a href="{{ work_url }}?tab=2">{{ comment.content_object.title }}</a></span>{% endcomment %}{% endblock %}
|
<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 />
|
<br /><i>{% now "M d Y, h:i A"%}</i><br />
|
||||||
</span>
|
</span>
|
||||||
<hr />
|
<hr />
|
||||||
|
|
Loading…
Reference in New Issue