2012-04-09 17:20:47 -07:00
|
|
|
{% load utils_tags typogrify_tags statistics_tags %}
|
|
|
|
|
2013-01-29 18:35:24 -08:00
|
|
|
<ul class="NB-interactions">
|
|
|
|
{% for interaction in interactions %}
|
|
|
|
<li class="NB-interaction NB-interaction-{{ interaction.category }}
|
|
|
|
{% if interaction.is_new %}NB-highlighted{% endif %}
|
|
|
|
{% if interaction.category == 'story_reshare' %}NB-interaction-sharedstory{% endif %}"
|
|
|
|
{% if interaction.content_id %}data-content-id="{{ interaction.content_id }}"{% endif %}
|
|
|
|
{% if interaction.feed_id %}data-feed-id="{{ interaction.feed_id }}"{% endif %}
|
|
|
|
{% if interaction.with_user_id %}data-user-id="{{ interaction.with_user_id }}"{% endif %}
|
|
|
|
{% if interaction.with_user %}data-username="{{ interaction.with_user.username }}"{% endif %}>
|
|
|
|
{% if interaction.category == 'follow' %}
|
|
|
|
<img class="NB-interaction-photo" src="{{ interaction.photo_url }}" data-user-id="{{ interaction.with_user_id }}">
|
|
|
|
<div class="NB-interaction-title">
|
|
|
|
<span class="NB-interaction-username NB-splash-link" data-user-id="{{ interaction.with_user_id }}">
|
|
|
|
{{ interaction.with_user.username }}
|
|
|
|
</span> is now following you.
|
|
|
|
</div>
|
2013-01-30 12:09:58 -08:00
|
|
|
<div class="NB-interaction-date">
|
|
|
|
{{ interaction.time_since }} ago
|
|
|
|
</div>
|
2013-01-29 18:35:24 -08:00
|
|
|
{% endif %}
|
2012-04-09 17:20:47 -07:00
|
|
|
|
2013-01-29 18:35:24 -08:00
|
|
|
{% if interaction.category == 'comment_reply' or interaction.category == 'reply_reply' %}
|
|
|
|
<img class="NB-interaction-photo" src="{{ interaction.photo_url }}" data-user-id="{{ interaction.with_user_id }}">
|
|
|
|
<div class="NB-interaction-title">
|
|
|
|
<span class="NB-interaction-username NB-splash-link" data-user-id="{{ interaction.with_user_id }}">
|
|
|
|
{{ interaction.with_user.username }}
|
|
|
|
</span> replied to your {% if interaction.category == 'comment_reply' %}comment{% else %}reply{% endif %}:
|
|
|
|
</div>
|
|
|
|
<div class="NB-interaction-content">
|
2015-06-02 21:04:27 -07:00
|
|
|
<span class="NB-interaction-reply-content" data-social-user-id="{{ interaction.feed_id }}">{{ interaction.content|safe|truncatewords:128 }}</span>
|
2013-01-30 12:09:58 -08:00
|
|
|
</div>
|
|
|
|
<div class="NB-interaction-date">
|
|
|
|
{{ interaction.time_since }} ago
|
2013-01-29 18:35:24 -08:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if interaction.category == 'story_reshare' %}
|
|
|
|
<img class="NB-interaction-photo" src="{{ interaction.photo_url }}" data-user-id="{{ interaction.with_user_id }}">
|
|
|
|
<div class="NB-interaction-title">
|
|
|
|
<span class="NB-interaction-username NB-splash-link" data-user-id="{{ interaction.with_user_id }}">
|
|
|
|
{{ interaction.with_user.username }}
|
2016-02-18 23:22:14 -08:00
|
|
|
</span> re-shared <span class="NB-interaction-sharedstory-title NB-splash-link" title="{{ interaction.title }}">{{ interaction.title|safe|truncatewords:12 }}</span>{% if interaction.content %}:{% else %}.{% endif %}
|
2013-01-29 18:35:24 -08:00
|
|
|
</div>
|
|
|
|
{% if interaction.content %}
|
2012-07-28 16:41:17 -07:00
|
|
|
<div class="NB-interaction-content">
|
2016-02-18 23:22:14 -08:00
|
|
|
<span class="NB-interaction-sharedstory-content" data-social-user-id="{{ interaction.feed_id }}">{{ interaction.content|safe|truncatewords:128 }}</span>
|
2012-07-15 19:29:05 -07:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2013-01-30 12:09:58 -08:00
|
|
|
<div class="NB-interaction-date">
|
|
|
|
{{ interaction.time_since }} ago
|
|
|
|
</div>
|
2013-01-29 18:35:24 -08:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if interaction.category == 'comment_like' %}
|
|
|
|
<img class="NB-interaction-photo" src="{{ interaction.photo_url }}" data-user-id="{{ interaction.with_user_id }}">
|
|
|
|
<div class="NB-interaction-title">
|
|
|
|
<span class="NB-interaction-username NB-splash-link" data-user-id="{{ interaction.with_user_id }}">
|
|
|
|
{{ interaction.with_user.username }}
|
2016-02-18 23:22:14 -08:00
|
|
|
</span> favorited your comments on <span class="NB-interaction-sharedstory-title NB-splash-link" title="{{ interaction.title }}">{{ interaction.title|safe|truncatewords:12 }}</span>.
|
2013-01-29 18:35:24 -08:00
|
|
|
</div>
|
2013-01-30 12:09:58 -08:00
|
|
|
<div class="NB-interaction-date">
|
|
|
|
{{ interaction.time_since }} ago
|
2013-01-29 18:35:24 -08:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|