{% extends 'layout.html' %}

{% block css %}
    <link href = "{{ url ('static_assets', filename='css/styles.css') }}"
          rel  = "stylesheet" />
{% endblock %}

{% block page %}
    
    <div class="bold large-font">
        {{ doc['name'] }} documentation
    </div>
    
    <hr class="hr-light margin-bottom" />
    
    <div class="margin-top">
        
        {% if doc['release'] is string %}
            <a href="{{ url('documentationdocs', docname=doc['id'], release=doc['release']) }}">
                {{ doc['release'] }}
            </a>
        {% else %}
            {% for release in doc['release']|sort %}
                <div>
                    <a href="{{ url('documentationdocs', docname=doc['id'], release=release) }}">
                        {{ release }}
                    </a>
                </div>
            {% endfor %}
        {% endif %}
        
    </div>
    
{% endblock %}
