{% extends "core/base.html" %} {% load staticfiles %} {% block title %}{{ block.super }} - {{ package }}{% endblock %} {% block extra-css %} {% endblock %} {% block extra-head %} {% endblock %} {% block page-header-title %}

{{ package }}

{% if package.short_description %}
{{ package.short_description }}
{% endif %}
{% endblock %} {% block page-header-right %}
{% include 'core/package-search-form.html' %}
{% include 'accounts/user-widget.html' with logout_redirect=request.path %} {% if request.user.is_authenticated %}
{% if request.user.emails.all|length == 1 %}
{% csrf_token %} {% else %} {% endif %} {% if request.user.emails.all|length == 1 %} {% else %}
{% endif %}
{% csrf_token %}
{% else %} {# When the user is not authenticated, the subscribe button leads to the log in page instead #}
Subscribe
{% endif %} {% endblock %} {% block page-content %} {# A hidden modal which would display a list of user emails allowing him to choose which one to subscribe to the package #} {% spaceless %} {% endspaceless %}
{% for panel in panels.left %} {% if panel.template_name %} {% include panel.template_name %} {% else %} {{ panel.html_output }} {% endif %} {% endfor %}
{% for panel in panels.center %} {% if panel.template_name %} {% include panel.template_name %} {% else %} {{ panel.html_output }} {% endif %} {% endfor %}
{% for panel in panels.right %} {% if panel.template_name %} {% include panel.template_name %} {% else %} {{ panel.html_output }} {% endif %} {% endfor %}
{% endblock %}