home » zplus/dokk.org.git
ID: 6e83ed68d40f47bf075137a9f967a9d4bf55949c
37 lines — 936B — View raw


{% extends "base.html" %}

{% block title %}{{ data['library:title'] }}{% endblock %}

{% block body %}

<div class="library_item">
    <div class="header">
        <a href="{{ url('library') }}">DOKK Library</a>
    </div>

    <div>
        <object type="application/pdf" data="https://blob.dokk.org/pdf/{{ item_id }}.pdf">
            <pre>{{ plaintext }}</pre>
        </object>
    </div>

    <div class="details">
        <h1>{{ data["library:title"] }}</h1>

        <p>
            <b>Authors</b>
            {% for author in data["library:author"]|sort() %}
                {{ author }}
            {% endfor%}
        </p>

        <p>
            <b>License</b>
            {% for license in data["library:license"]|sort(attribute="license:id") %}
                <a href="{{ url('license', id=license['license:id']) }}">{{ license['license:id'] }}</a>
            {% endfor%}
        </p>
    </div>
</div>

{% endblock %}