{% extends theme('user/base.html') %} {% set user_tab = 'following' %} {% block breadcrumb %}
  • {{ _('Users') }}
  • {{ user.fullname }}
  • {{ _('Following') }}
  • {% endblock %} {% block user_content %} {% if followed_users or followed_datasets or followed_organizations or followed_reuses %} {% set activated = False %} {% set tabs = ( ('datasets', _('Datasets'), followed_datasets), ('reuses', _('Reuses'), followed_reuses), ('organizations', _('Organizations'), followed_organizations), ('users', _('Users'), followed_users), ) %} {% set activated = False %} {% if followed_datasets %}

    {{ ngettext( 'Follow %(num)d dataset', 'Follow %(num)d datasets', followed_datasets|length ) }}

    {% for dataset in followed_datasets %}
    {% include theme('dataset/card-xs.html') %}
    {% endfor %}
    {% endif %} {% if followed_reuses %}

    {{ ngettext( 'Follow %(num)d reuse', 'Follow %(num)d reuses', followed_reuses|length ) }}

    {% for reuse in followed_reuses %}
    {% include theme('reuse/card.html') %}
    {% endfor %}
    {% endif %} {% if followed_organizations %}

    {{ ngettext( 'Follow %(num)d organization', 'Follow %(num)d organizations', followed_organizations|length ) }}

    {% for organization in followed_organizations %}
    {% include theme('organization/card.html') %}
    {% endfor %}
    {% endif %} {% if followed_users %}

    {{ ngettext( 'Follow %(num)d user', 'Follow %(num)d users', followed_users|length ) }}

    {% for user in followed_users %}
    {% include theme('user/card.html') %}
    {% endfor %}
    {% endif %} {% else %}

    {{ _('%(user)s is not following anyone', user=user.fullname) }}

    {% endif %} {% endblock %}