medor.www
clone your own copy | download snapshot

Snapshots | iceberg

Inside this repository

article_detail.html
text/html

Download raw (1.6 KB)

{% extends "base3.html" %}

{% block content %}
<article class="article-detail">
    <header>
        <p class="rubrique-title">{{ object.rubric.title|safe }}</p>
        {% if object.rubric.subtitle %}<p class="rubrique-subtitle">{{ object.rubric.subtitle|safe }}</p>{% endif %}
        <h1>{{ object.title|safe }}</h1>
        {% if object.subtitle %}<h2>{{ object.subtitle|safe }}</h2>{% endif %}
        <p class=authors>{{ object.authors|safe }}</p>
        <div class="lead">{{ object.lead|safe }}</div>
        <!-- <dl> -->
        <!--     {% for contribution in object.contributions.all %} -->
        <!--     <dt>{{ contribution.role }}</dt> -->
        <!--     <dd>{{ contribution.contributor }}</dd> -->
        <!--     {% endfor %} -->
        <!-- </dl> -->
    </header>

    <div class="body">
    {{ object.body|safe }}
    </div>

    <p class="publication-date">{% if object.articlemembership_set.first %}
    {% with object.articlemembership_set.first as print_publication %}
    Publié dans {{ print_publication.issue }}<!-- {{ print_publication.issue.publish_date|date:"d/m/Y" }}-->,
            {% if print_publication.single_page %}
                page {{ print_publication.first_page}}.
            {% else %}
                pages {{ print_publication.first_page}}–{{ print_publication.last_page}}.
            {% endif %}<br/>
    {% endwith %}
    {% endif %}
    {% if object.articlemembershipweb_set.first %}
    	Publication en ligne: {{ object.articlemembershipweb_set.first.web_publish_date|date:"d/m/Y" }}.
    {% endif %}</p>
</article>
{% endblock %}