Source

onpython3yet / onpython3yet / templates / packages / show.html

{% extends "base.html"%}

{% block content %}
    <h1>{{ package.name }}</h1>

    <div class="summary">{{ package.summary }}</div>

    <div class="supports">
        Supports Python 3?
        <b>{% if package.supports_python_3 %}
            Yes
        {% else %}
            No
        {% endif %}</b>
    </div>
    
    {% if package.description %}
    <p>
        {{ package.description }}
    </p>
    {% endif %}
    
    {% if package.requirements.count %}
    <h3>Required Packages</h3>
    {% for req in package.requirements.all %}
        {% with req.required_package as pkg %}
            {% include "pkg_link.html" %}
        {% endwith %}
    {% endfor %}
    {% endif %}

    {% if package.dependents.count %}
    <h3>Dependants</h3>
    {% for req in package.dependents.all %}
        {% with req.package as pkg %}
            {% include "pkg_link.html" %}
        {% endwith %}
    {% endfor %}
    {% endif %}
{% endblock %}