2012-04-11 12:14:18 -07:00
|
|
|
{% load utils_tags typogrify_tags statistics_tags %}
|
|
|
|
|
2012-04-19 19:09:31 -07:00
|
|
|
{% if not public %}
|
2012-04-12 17:41:33 -07:00
|
|
|
<div class="NB-module NB-module-activities NB-page-{{ page }} {% if not activities %}NB-hidden{% endif %}">
|
2012-04-12 11:43:36 -07:00
|
|
|
<h5 class="NB-module-header">
|
2012-04-12 11:18:56 -07:00
|
|
|
<div class="NB-module-header-right">
|
|
|
|
<div class="NB-spinner NB-left"></div>
|
2012-07-18 23:06:43 -07:00
|
|
|
<a href="#" class="NB-module-direction NB-module-next-page NB-javascript {% if not has_next_page %}NB-disabled{% endif %}"></a>
|
2012-04-12 11:18:56 -07:00
|
|
|
<a href="#" class="NB-module-direction NB-module-previous-page {% if page <= 1 %}NB-disabled{% endif %}"></a>
|
|
|
|
</div>
|
2012-04-11 12:14:18 -07:00
|
|
|
|
|
|
|
Your Activity
|
2012-04-12 11:43:36 -07:00
|
|
|
</h5>
|
2012-04-19 19:09:31 -07:00
|
|
|
|
|
|
|
{% endif %}
|
2012-04-11 12:14:18 -07:00
|
|
|
|
|
|
|
<ul class="NB-interactions">
|
2012-07-18 23:06:43 -07:00
|
|
|
{% for activity in activities %}
|
2012-08-15 18:35:55 -07:00
|
|
|
<li class="NB-interaction NB-activity-{{ activity.category }} {% if activity.is_new %}NB-highlighted{% endif %} {% if activity.category == 'signup' %}NB-disabled{% endif %}"
|
2012-04-11 15:53:53 -07:00
|
|
|
{% if activity.content_id %}data-content-id="{{ activity.content_id }}"{% endif %}
|
2012-04-16 11:21:52 -07:00
|
|
|
{% if activity.feed_id %}data-feed-id="{{ activity.feed_id }}"{% endif %}
|
|
|
|
{% if activity.with_user_id %}data-user-id="{{ activity.with_user_id }}"{% endif %}
|
|
|
|
{% if activity.with_user %}data-username="{{ activity.with_user.username }}"{% endif %}>
|
2012-04-11 12:14:18 -07:00
|
|
|
|
2012-04-16 11:21:52 -07:00
|
|
|
{% if activity.category == 'follow' %}
|
|
|
|
<img class="NB-interaction-photo" src="{{ activity.photo_url }}" data-user-id="{{ activity.with_user_id }}">
|
|
|
|
<div class="NB-interaction-date">
|
2012-04-21 18:20:49 -07:00
|
|
|
{{ activity.time_since }} ago
|
2012-04-16 11:21:52 -07:00
|
|
|
</div>
|
|
|
|
<div class="NB-interaction-title">
|
2012-04-19 19:09:31 -07:00
|
|
|
{{ username }} followed
|
2012-04-16 11:21:52 -07:00
|
|
|
<span class="NB-interaction-username NB-splash-link" data-user-id="{{ activity.with_user_id }}">{{ activity.with_user.username }}</span>.
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2012-08-15 18:35:55 -07:00
|
|
|
|
|
|
|
{% if activity.category == 'signup' %}
|
|
|
|
<img class="NB-interaction-photo" src="{{ activity.photo_url }}" data-user-id="{{ activity.with_user_id }}">
|
|
|
|
<div class="NB-interaction-date">
|
|
|
|
{{ activity.time_since }} ago
|
|
|
|
</div>
|
|
|
|
<div class="NB-interaction-title">
|
|
|
|
{{ username }} signed up for NewsBlur.
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2012-04-16 11:21:52 -07:00
|
|
|
|
|
|
|
{% if activity.category == 'comment_reply' %}
|
2012-07-28 19:53:38 -07:00
|
|
|
<img class="NB-interaction-photo" src="{{ activity.photo_url }}" data-feed-id="{{ activity.feed_id }}">
|
2012-04-16 11:21:52 -07:00
|
|
|
<div class="NB-interaction-date">
|
2012-04-21 18:20:49 -07:00
|
|
|
{{ activity.time_since }} ago
|
2012-04-16 11:21:52 -07:00
|
|
|
</div>
|
|
|
|
<div class="NB-interaction-title">
|
2012-04-19 19:09:31 -07:00
|
|
|
{{ username }} replied to <span class="NB-interaction-username NB-splash-link" data-user-id="{{ activity.with_user_id }}">{{ activity.with_user.username }}</span>:
|
2012-04-16 11:21:52 -07:00
|
|
|
</div>
|
|
|
|
<div class="NB-interaction-content">
|
2013-01-03 17:56:01 -08:00
|
|
|
"<span class="NB-interaction-reply-content NB-splash-link" data-story-id="{{ activity.content_id }}">{{ activity.content|safe|truncatewords:16 }}</span>"
|
2012-04-16 11:21:52 -07:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2012-07-15 19:29:05 -07:00
|
|
|
|
|
|
|
{% if activity.category == 'comment_like' %}
|
2012-07-28 16:41:17 -07:00
|
|
|
<img class="NB-interaction-photo" src="{{ activity.photo_url }}" data-user-id="{{ activity.with_user_id }}">
|
2012-07-15 19:29:05 -07:00
|
|
|
<div class="NB-interaction-date">
|
|
|
|
{{ activity.time_since }} ago
|
|
|
|
</div>
|
|
|
|
<div class="NB-interaction-title">
|
|
|
|
{{ username }} favorited <span class="NB-interaction-username NB-splash-link" data-user-id="{{ activity.with_user_id }}">{{ activity.with_user.username }}</span>'s comments on <span class="NB-interaction-sharedstory-title NB-splash-link">{{ activity.title|safe|truncatewords:6 }}</span>:
|
2012-07-28 16:41:17 -07:00
|
|
|
</div>
|
|
|
|
<div class="NB-interaction-content">
|
|
|
|
"<span class="NB-interaction-sharedstory-content NB-splash-link">{{ activity.content|truncatewords:16 }}</span>"
|
2012-07-15 19:29:05 -07:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2012-04-16 11:21:52 -07:00
|
|
|
|
|
|
|
{% if activity.category == 'sharedstory' %}
|
2012-07-28 17:14:28 -07:00
|
|
|
<img class="NB-interaction-photo" src="/rss_feeds/icon/{{ activity.story_feed_id }}" data-feed-id="{{ activity.story_feed_id }}">
|
2012-04-16 11:21:52 -07:00
|
|
|
<div class="NB-interaction-date">
|
2012-04-21 18:20:49 -07:00
|
|
|
{{ activity.time_since }} ago
|
2012-04-16 11:21:52 -07:00
|
|
|
</div>
|
|
|
|
<div class="NB-interaction-title">
|
2012-04-21 21:50:27 -07:00
|
|
|
{{ username }} shared <span class="NB-interaction-sharedstory-title NB-splash-link">{{ activity.title|safe|truncatewords:6 }}</span>{% if activity.content %}:{% else %}.{% endif %}
|
2012-04-16 11:21:52 -07:00
|
|
|
</div>
|
|
|
|
{% if activity.content %}
|
|
|
|
<div class="NB-interaction-content">
|
2012-07-23 23:23:34 -07:00
|
|
|
"<span class="NB-interaction-sharedstory-content NB-splash-link">{{ activity.content|safe|truncatewords:16 }}</span>"
|
2012-04-16 11:21:52 -07:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
2012-04-11 12:14:18 -07:00
|
|
|
{% if activity.category == 'star' %}
|
2012-07-15 17:59:19 -07:00
|
|
|
<img class="NB-interaction-photo" src="{{ MEDIA_URL }}img/icons/silk/time.png">
|
2012-04-11 12:14:18 -07:00
|
|
|
<div class="NB-interaction-date">
|
2012-04-21 18:20:49 -07:00
|
|
|
{{ activity.time_since }} ago
|
2012-04-11 12:14:18 -07:00
|
|
|
</div>
|
|
|
|
<div class="NB-interaction-title">
|
2012-04-22 13:24:14 -07:00
|
|
|
You saved "<span class="NB-interaction-starred-story-title NB-splash-link">{{ activity.content|safe|truncatewords:8 }}</span>".
|
2012-04-11 12:14:18 -07:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2012-04-11 15:53:53 -07:00
|
|
|
{% if activity.category == 'feedsub' %}
|
2012-07-29 00:49:34 -07:00
|
|
|
<img class="NB-interaction-photo" src="/rss_feeds/icon/{{ activity.feed_id }}">
|
2012-04-11 12:14:18 -07:00
|
|
|
<div class="NB-interaction-date">
|
2012-04-21 18:20:49 -07:00
|
|
|
{{ activity.time_since }} ago
|
2012-04-11 12:14:18 -07:00
|
|
|
</div>
|
|
|
|
<div class="NB-interaction-title">
|
2012-04-11 15:20:57 -07:00
|
|
|
You subscribed to <span class="NB-interaction-feed-title NB-splash-link">{{ activity.content|truncatewords:8 }}</span>.
|
2012-04-11 12:14:18 -07:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
|
2012-04-19 19:09:31 -07:00
|
|
|
{% if not public %}
|
2012-04-11 12:14:18 -07:00
|
|
|
</div>
|
2012-04-19 19:09:31 -07:00
|
|
|
{% endif %}
|