Commit 99feccb4 authored by arnaudbey's avatar arnaudbey

fix #14

parent 7e2075ff
......@@ -9,48 +9,47 @@
{% block body %}
{% set diplomatic = getHTML("tapuscrit", fiche.name) %}
{% set linearized = getHTML("final", fiche.name) %}
{% set diplomatic = getHTML("final", fiche.name) %}
{% set linearized = getHTML("tapuscrit", fiche.name) %}
<input id="imageURL" name="imageURL" type="hidden" value="{{ asset("img/numerisations/")}}{{fiche.image}}">
<nav aria-label="breadcrumb">
<ol class="breadcrumb bgblack">
<li class="breadcrumb-item"><a href="{{path("boites")}}">Exploration des brouillons</a></li>
<li class="breadcrumb-item"><a href="{{ path('boite_fiches', {boite: fiche.boite.name}) }}">#{{fiche.boite.name}}</a></li>
<li class="breadcrumb-item active">{{ fiche.name }}</li>
</ol>
</nav>
<div class="row text-white">
<div class="col">
{% if fiche.previous %}
{% set path = path('display_fiche', {'boite': fiche.boite.name, 'fiche': fiche.previous.name}) %}
<a class="text-white" id="previous-btn" data-absolute="{{ absolute_url(path) }}" href="{{ path }}">
<i class="fas fa-chevron-circle-left"></i>
</a>
{% endif %}
</div>
<div class="col text-right">
{% set next = getNext(fiche) %}
{% if next %}
{% set path = path('display_fiche', {'boite': fiche.boite.name, 'fiche': next.name}) %}
<a class="text-white" id="next-btn" data-absolute="{{ absolute_url(path) }}" href="{{ path }}">
<i class="fas fa-chevron-circle-right"></i>
</a>
{% endif %}
</div>
</div>
<div class="bg-light rounded">
<div class="row mt-3">
{% set position = "left" %}
{% include 'default/half-fiche.html.twig' %}
{% set position = "right" %}
{% include 'default/half-fiche.html.twig' %}
</div>
<nav aria-label="breadcrumb">
<ol class="breadcrumb bgblack">
<li class="breadcrumb-item"><a href="{{path("boites")}}">Exploration des brouillons</a></li>
<li class="breadcrumb-item"><a href="{{ path('boite_fiches', {boite: fiche.boite.name}) }}">#{{fiche.boite.name}}</a></li>
<li class="breadcrumb-item active">{{ fiche.name }}</li>
</ol>
</nav>
<div class="row text-white">
<div class="col">
{% if fiche.previous %}
{% set path = path('display_fiche', {'boite': fiche.boite.name, 'fiche': fiche.previous.name}) %}
<a class="text-white" id="previous-btn" data-absolute="{{ absolute_url(path) }}" href="{{ path }}">
<i class="fas fa-chevron-circle-left"></i>
</a>
{% endif %}
</div>
<div class="col text-right">
{% set next = getNext(fiche) %}
{% if next %}
{% set path = path('display_fiche', {'boite': fiche.boite.name, 'fiche': next.name}) %}
<a class="text-white" id="next-btn" data-absolute="{{ absolute_url(path) }}" href="{{ path }}">
<i class="fas fa-chevron-circle-right"></i>
</a>
{% endif %}
</div>
</div>
<div class="bg-light rounded">
<div class="row mt-3">
{% set position = "left" %}
{% include 'default/half-fiche.html.twig' %}
{% set position = "right" %}
{% include 'default/half-fiche.html.twig' %}
</div>
</div>
{% endblock %}
......
<!--LEFT COL -->
<div class="col">
<ul class="nav nav-tabs nav-fill">
<li class="nav-item">
<a data-toggle="tab" class="nav-link {{position == "left" ? "active"}}" href="#nav-facsimile-{{position}}">Fac-simile</a>
</li>
<li class="nav-item">
<a data-toggle="tab" class="nav-link {{position == "right" ? "active"}}" href="#nav-linea-{{position}}">Tapuscrit corrigé</a>
<a data-toggle="tab" class="nav-link {{position == "right" ? "active"}}" href="#nav-diplo-{{position}}">Tapuscrit corrigé</a>
</li>
<li class="nav-item">
<a data-toggle="tab" class="nav-link" href="#nav-diplo-{{position}}">Tapuscrit</a>
<a data-toggle="tab" class="nav-link" href="#nav-linea-{{position}}">Tapuscrit</a>
</li>
</ul>
<div class="tab-content">
<!--FAC-SIMILE -->
<div class="tab-pane fade {{position == "left" ? " show active"}}" id="nav-facsimile-{{position}}">
<div class="tab-pane fade {{position == "left" ? "show active"}}" id="nav-facsimile-{{position}}">
<div class="openseadragon-buttons-{{position}} openseadragon-buttons text-center pt-2">
<button id="{{position}}-osd-zoom-in" type="button" class="btn btn-sm btn-light">
<i class="fa fa-search-plus"></i>
......@@ -38,13 +37,14 @@
</div>
<!--PSEUDODIPLO -->
<div class="tab-pane fade {{position == "right" ? " show active"}}" id="nav-diplo-{{position}}">
<div class="tab-pane fade {{position == "right" ? "show active"}}" id="nav-diplo-{{position}}">
<div class="pseudodiplo">
<div class="row">
<div class="col mt-3">{{ diplomatic | raw }}</div>
</div>
</div>
</div>
<!--LINEARIZED -->
<div class="tab-pane fade" id="nav-linea-{{position}}">
<div class="linearized">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment