{# Displays a sidebar module with information for given package pkg - The package dict that owns the resources. am_following - True if the user is following the package. Example: {% snippet "package/snippets/info.html", pkg=pkg, am_following=am_following %} #} {% block package_info %} {% if pkg %}
{% block package_info_inner %} {% block heading %}

{{ h.dataset_display_name(pkg) }}

{% endblock %} {% block nums %} {% set num_followers = h.follow_count('dataset', pkg.id) %}
{{ _('Followers') }}
{{ h.SI_number_span(num_followers) }}
{% endblock %} {% block follow_button %} {% if current_user.is_authenticated %} {% if error_message %}
{{ error_message }}
{% endif %} {% snippet 'snippets/follow_button.html', am_following=am_following, obj_type='dataset', obj_id=pkg.id, anchor_type='package' %} {% endif %} {% endblock %} {% endblock %}
{% endif %} {% endblock %}