{# Here's where we add the share / like links #}
{% load i18n %}

{% with content.likes as likes %}
    {% with likes.n_likes as n_likes %}
        {% if n_likes %}
            <li class="f_likes">
                {% autoescape off %}
                  {% for featured in likes.featured %}
                     {{ featured.html_link }}{% if not forloop.last %},&nbsp;{% endif %}
                  {% endfor %}
                {% endautoescape %}
            </li>
            <li class="n_likes">
              {{ n_likes }}
            </li>
        {% endif %}
        {% comment %}
        <!-- TODO JMG : replace # in urls by an url (+view > redirect) specific for browsers without js-->
        {% endcomment %}
        {% if not likes.i_like %}
            <li class="i_like"
                id="toggle_like_{{ content.id }}">
                <a class="toggle_like"
                   title="{% blocktrans %}I like{% endblocktrans %}"
                   href="#"></a>
            </li>
        {% else %}
            <li class="i_unlike"
                id="toggle_like_{{ content.id }}">
                <a class="toggle_like"
                   title="{% blocktrans %}I don't like{% endblocktrans %}"
                   href="#"></a>
            </li>
        {% endif %}
    {% endwith %}
{% endwith %}



