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-04-18 22:17:29 -07:00
|
|
|
<a href="#" class="NB-module-direction NB-module-next-page NB-javascript {% if activities|length <= 4 %}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-04-18 22:04:13 -07:00
|
|
|
{% for activity in activities|slice:":4" %}
|
2012-04-11 12:14:18 -07:00
|
|
|
<li class="NB-interaction NB-interaction-{{ activity.category }}"
|
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">
|
|
|
|
{{ activity.date }} ago
|
|
|
|
</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 %}
|
|
|
|
|
|
|
|
{% if activity.category == 'comment_reply' %}
|
|
|
|
<img class="NB-interaction-photo" src="/rss_feeds/icon/{{ activity.feed_id }}" data-feed-id="{{ activity.feed_id }}">
|
|
|
|
<div class="NB-interaction-date">
|
|
|
|
{{ activity.date }} ago
|
|
|
|
</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">
|
|
|
|
"<span class="NB-interaction-reply-content NB-splash-link" data-story-id="{{ activity.content_id }}">{{ activity.content|truncatewords:16 }}</span>"
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if activity.category == 'sharedstory' %}
|
|
|
|
<img class="NB-interaction-photo" src="/rss_feeds/icon/{{ activity.feed_id }}" data-feed-id="{{ activity.feed_id }}">
|
|
|
|
<div class="NB-interaction-date">
|
|
|
|
{{ activity.date }} ago
|
|
|
|
</div>
|
|
|
|
<div class="NB-interaction-title">
|
2012-04-19 19:09:31 -07:00
|
|
|
{{ username }} shared <span class="NB-interaction-sharedstory-title NB-splash-link">{{ activity.title|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">
|
|
|
|
"<span class="NB-interaction-sharedstory-content NB-splash-link">{{ activity.content|truncatewords:16 }}</span>"
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
2012-04-11 12:14:18 -07:00
|
|
|
{% if activity.category == 'star' %}
|
|
|
|
<img class="NB-interaction-photo" src="/rss_feeds/icon/{{ activity.feed_id }}">
|
|
|
|
<div class="NB-interaction-date">
|
|
|
|
{{ activity.date }} ago
|
|
|
|
</div>
|
|
|
|
<div class="NB-interaction-title">
|
|
|
|
You starred "<span class="NB-interaction-starred-story-title NB-splash-link">{{ activity.content|truncatewords:8 }}</span>".
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2012-04-11 15:53:53 -07:00
|
|
|
{% if activity.category == 'feedsub' %}
|
2012-04-11 12:14:18 -07:00
|
|
|
<img class="NB-interaction-photo" src="/rss_feeds/icon/{{ activity.feed_id }}">
|
|
|
|
<div class="NB-interaction-date">
|
|
|
|
{{ activity.date }} ago
|
|
|
|
</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 %}
|