Display boosts in activity feed.
This commit is contained in:
parent
745ca7d4ff
commit
acffb36f46
|
@ -10,6 +10,8 @@
|
||||||
reviewed {{ status.book.title }}
|
reviewed {{ status.book.title }}
|
||||||
{% elif status.status_type == 'Comment' %}
|
{% elif status.status_type == 'Comment' %}
|
||||||
commented on {{ status.book.title }}
|
commented on {{ status.book.title }}
|
||||||
|
{% elif status.status_type == 'Boost' %}
|
||||||
|
boosted
|
||||||
{% elif status.reply_parent %}
|
{% elif status.reply_parent %}
|
||||||
{% with parent_status=status|parent %}
|
{% with parent_status=status|parent %}
|
||||||
replied to {% include 'snippets/username.html' with user=parent_status.user possessive=True %} <a href="{{parent_status.absolute_id }}">{{ parent_status.status_type|lower }}</a>
|
replied to {% include 'snippets/username.html' with user=parent_status.user possessive=True %} <a href="{{parent_status.absolute_id }}">{{ parent_status.status_type|lower }}</a>
|
||||||
|
@ -43,10 +45,15 @@
|
||||||
{% if status.status_type == 'Review' %}<h4>{{ status.name }}
|
{% if status.status_type == 'Review' %}<h4>{{ status.name }}
|
||||||
<small>{{ status.rating | stars }} stars, by {% include 'snippets/username.html' with user=status.user %}</small>
|
<small>{{ status.rating | stars }} stars, by {% include 'snippets/username.html' with user=status.user %}</small>
|
||||||
</h4>{% endif %}
|
</h4>{% endif %}
|
||||||
{% if status.status_type != 'Update' %}
|
{% if status.status_type != 'Update' and status.status_type != 'Boost' %}
|
||||||
<blockquote>{{ status.content | safe }}</blockquote>
|
<blockquote>{{ status.content | safe }}</blockquote>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if status.status_type == 'Boost' %}
|
||||||
|
{% include 'snippets/status.html' with status=status.boosted_status depth=depth|add:1 %}
|
||||||
|
{% endif %}
|
||||||
{% if not max_depth and status.reply_parent or status|replies %}<p><a href="{{ status.absolute_id }}">Thread</a>{% endif %}
|
{% if not max_depth and status.reply_parent or status|replies %}<p><a href="{{ status.absolute_id }}">Thread</a>{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
{% if status.status_type != 'Boost' %}
|
||||||
{% include 'snippets/interaction.html' with activity=status %}
|
{% include 'snippets/interaction.html' with activity=status %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue