home » zplus/dokk.org.git
ID: 7bb47147b9cfdfcfcfa7b5b47ddb7c4b606c100d
42 lines — 831B — View raw


{% extends "templates/base.tpl" %}

{% set data = query("""
    PREFIX mp: <dokk:manpages:>

    SELECT ?name ?number
    WHERE {
        [] a mp:Distribution ;
        mp:name   ?name ;
        mp:number ?number
    }
    ORDER BY ?name ?number
    """)
%}

{% block title %}man pages{% endblock %}

{% block body %}

<div class="manpages">

    <div class="path">
        <a href="/">DOKK</a> /
        manpages
    </div>

    <p>
        Distributions:
    </p>

    {% for result in data["results"]["bindings"] %}
        <div>
            <a href="{{ url('manpages_distribution', distribution=result['name']['value'], version=result['number']['value']) }}">
                {{ result["name"]["value"] }}
                {{ result["number"]["value"] }}
            </a>
        </div>
    {% endfor %}

</div>

{% endblock %}