home » zplus/dokk.org.git
ID: f24ce524ca6ed7a39cccfb018a1f95359ca2a38a
38 lines — 972B — View raw


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

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

{% block body %}

<div class="library_item">
    <div class="header">
        <a href="/library">DOKK Library</a>
    </div>

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

    <div class="info">
        <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["license:licensed_under"]|sort(attribute="license:id") %}
                <a href="{{ url('license', id=license['license:id']) }}">{{ license['license:id'] }}</a>
            {% endfor%}
        </p>
    </div>

    <details open>
        <summary>Plaintext</summary>
        <pre>{{ plaintext }}</pre>
    </details>
</div>

{% endblock %}