{% extends "bookmarks/base.html" %} {% load i18n %} {% load account_tags %} {% load avatar_tags %} {% load voting_tags %} {% load pagination_tags %} {% load extra_voting_tags %} {% load in_filter %} {% load extra_tagging_tags %} {% load sorting_tags %} {% block head_title %}{% blocktrans %}Friends' Bookmarks{% endblocktrans %}{% endblock %} {# @@@ factor out the repetition between this and other templates #} {% block body %}

{% trans "Friends' Bookmarks" %}

{% if object_list %} {# ## FIXME this should probably be done in djanog-sorting #} {% with request.field|cut:"-" as sort_order %}

{% trans "These are bookmarks from your friends:" %}

{% trans "Sort by:" %} {% ifequal sort_order "points" %} {% anchor "hotness" "reddit-like hotness" %} {% trans "or" %} {% trans "total points" %} {% trans "or" %} {% anchor "date" "date added" %} {% order_by_votes object_list request.direction %} {% else %} {% ifequal sort_order "hotness" %} {% trans "reddit-like hotness" %} {% trans "or" %} {% anchor "points" "total points" %} {% trans "or" %} {% anchor "date" "date added" %} {% order_by_reddit object_list added request.direction %} {% else %} {% anchor "hotness" "reddit-like hotness" %} {% trans "or" %} {% anchor "points" "total points" %} {% trans "or" %} {% trans "date added" %} {% endifequal %} {% endifequal %}

{% autopaginate object_list %} {% votes_by_user user on object_list as vote_dict %} {% scores_for_objects object_list as score_dict %} {% for bookmark in object_list %} {% endfor %}
{% avatar bookmark.adder 40 %}
{{ bookmark.added|date }}
{% dict_entry_for_item bookmark from vote_dict as vote %} {% dict_entry_for_item bookmark from score_dict as score %} {% if user.is_authenticated %}
{% endif %} {{ score.score|default:0 }} point{{ score.score|default:0|pluralize }}
{% if user.is_authenticated %} {% endif %}

{% if bookmark.get_favicon_url %} {% endif %}{{ bookmark.description }}

{{ bookmark.url }}
{{ bookmark.note|linebreaks }}
{% blocktrans count bookmark.saved_instances.count as count %} Saved once {% plural %} Saved {{ count }} times {% endblocktrans %} {% if bookmark in user_bookmarks %} {% blocktrans %}(including you){% endblocktrans %} {% else %} ({% blocktrans %}save{% endblocktrans %}) {% endif %}
{% show_tag_counts bookmark.all_tags_with_counts %}
{% paginate %} {% endwith %} {% else %}

{% trans "No bookmarks yet." %}

{% endif %} {% endblock %} {% block extra_body %} {% endblock %}