2023-04-25 11:29:40 +00:00
|
|
|
<!-- prettier-ignore -->
|
|
|
|
{% extends 'base.html' %}
|
2023-05-03 07:04:31 +00:00
|
|
|
|
2023-06-02 08:22:24 +00:00
|
|
|
{% block title %}{{section.label}}{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
2023-05-15 09:14:49 +00:00
|
|
|
{% if current_user.is_authenticated %}
|
2023-06-02 08:22:24 +00:00
|
|
|
{% include 'book/modals/approve_interpretation_modal.html' %}
|
|
|
|
{% include 'book/modals/edit_interpretation_modal.html' %}
|
|
|
|
{% include 'book/modals/delete_interpretation_modal.html' %}
|
2023-05-19 11:36:55 +00:00
|
|
|
{% block right_sidebar %}
|
|
|
|
{% endblock %}
|
2023-05-15 09:14:49 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2023-05-03 07:04:31 +00:00
|
|
|
|
2023-05-08 08:24:26 +00:00
|
|
|
{% include 'book/breadcrumbs_navigation.html'%}
|
2023-05-25 13:51:42 +00:00
|
|
|
<div class="overflow-x-auto shadow-md sm:rounded-lg">
|
2023-04-25 11:29:40 +00:00
|
|
|
<!-- prettier-ignore -->
|
2023-05-10 14:40:52 +00:00
|
|
|
<div class="fixed z-30 w-full top-44 pt-6 bg-white border-b border-gray-200 dark:bg-gray-800 dark:border-gray-700">
|
2023-05-08 08:24:26 +00:00
|
|
|
<!-- prettier-ignore -->
|
2023-05-15 09:14:49 +00:00
|
|
|
<h1 class="text-l font-extrabold dark:text-white ml-4">{{section.label}}</h1>
|
2023-05-08 08:24:26 +00:00
|
|
|
<!-- prettier-ignore -->
|
2023-05-08 14:33:15 +00:00
|
|
|
<div class="mb-1">
|
2023-04-25 11:29:40 +00:00
|
|
|
<ul class="flex flex-wrap -mb-px text-sm font-medium text-center" id="myTab" data-tabs-toggle="#myTabContent" role="tablist">
|
2023-05-03 14:29:56 +00:00
|
|
|
<li class="mr-2" role="presentation">
|
2023-05-04 06:56:09 +00:00
|
|
|
<button class="flex items-center space-x-2 p-4 border-b-2 rounded-t-lg" id="interpretation-tab" data-tabs-target="#interpretation" type="button" role="tab" aria-controls="interpretation" aria-selected="false">
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6"> <path stroke-linecap="round" stroke-linejoin="round" d="M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m5.231 13.481L15 17.25m-4.5-15H5.625c-.621 0-1.125.504-1.125 1.125v16.5c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9zm3.75 11.625a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z" /> </svg>
|
|
|
|
<span>Interpretations</span>
|
|
|
|
</button>
|
2023-05-03 14:29:56 +00:00
|
|
|
</li>
|
2023-04-25 11:29:40 +00:00
|
|
|
</ul>
|
2023-05-04 06:56:09 +00:00
|
|
|
</div>
|
2023-05-08 08:24:26 +00:00
|
|
|
</div>
|
|
|
|
<div id="myTabContent" class="mt-40">
|
2023-05-10 11:51:08 +00:00
|
|
|
<!-- prettier-ignore -->
|
|
|
|
<div class="hidden p-4 rounded-lg bg-gray-50 dark:bg-gray-800" id="interpretation" role="tabpanel" aria-labelledby="interpretation-tab">
|
2023-05-10 14:40:52 +00:00
|
|
|
{% if not current_user.is_authenticated %}
|
|
|
|
<div class="bg-white dark:bg-gray-900 max-w-full p-6 text-gray-900 divide-y divide-gray-200 dark:text-white dark:divide-gray-700 m-3 border-2 border-gray-200 border-solid rounded-lg dark:border-gray-700">
|
|
|
|
<div class="grid gap-6">
|
|
|
|
<div class="col-span-6 sm:col-span-3 truncate">
|
|
|
|
<h3 class="text-xl font-semibold text-gray-900 dark:text-white ">Connect you wallet to start contributing!</h3>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- prettier-ignore -->
|
|
|
|
{% endif %}
|
|
|
|
{% if current_user.is_authenticated %}
|
2023-04-26 09:35:43 +00:00
|
|
|
<!-- prettier-ignore -->
|
2023-05-05 16:51:55 +00:00
|
|
|
<form
|
2023-05-30 07:12:43 +00:00
|
|
|
action="{{ url_for('book.interpretation_create', book_id=book.id, section_id=section.id) }}"
|
2023-05-17 11:11:22 +00:00
|
|
|
method="post" class="prevent-submit-on-enter bg-white rounded-lg shadow dark:bg-gray-700"
|
|
|
|
>
|
2023-05-05 07:35:15 +00:00
|
|
|
{{ form_hidden_tag() }}
|
|
|
|
<input type="hidden" name="section_id" id="section_id" value="{{section.id}}" />
|
|
|
|
<input type="hidden" name="label" id="label" value="{{section.label}}" />
|
2023-05-05 16:51:55 +00:00
|
|
|
|
2023-05-05 17:24:38 +00:00
|
|
|
<input type="hidden" name="text" id="interpretation-text-input" />
|
2023-05-05 07:35:15 +00:00
|
|
|
<!-- Form body -->
|
|
|
|
<div class="p-6 space-y-6">
|
|
|
|
<div class="grid gap-6">
|
2023-05-05 12:48:55 +00:00
|
|
|
<div class="col-span-6 sm:col-span-3 truncate">
|
|
|
|
<h3 class="text-xl font-semibold text-gray-900 dark:text-white ">{{ section.label }}</h3>
|
2023-05-05 07:35:15 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-05-24 11:44:04 +00:00
|
|
|
<div class="p-6 pt-0 space-y-6">
|
|
|
|
<div class="w-full max-w-6xl mx-auto rounded-xl bg-gray-50 dark:bg-gray-600 shadow-lg text-white-900">
|
|
|
|
<div class="overflow-hidden rounded-md bg-gray-50 [&>*]:dark:bg-gray-600 text-black [&>*]:!border-none [&>*]:!stroke-black dark:text-white dark:[&>*]:!stroke-white">
|
|
|
|
<div id="interpretation-text" class="quill-editor dark:text-white h-64">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-05-17 11:11:22 +00:00
|
|
|
|
2023-05-05 07:35:15 +00:00
|
|
|
<!-- Modal footer -->
|
|
|
|
<div class="flex items-center p-6 space-x-2 border-t border-gray-200 rounded-b dark:border-gray-600">
|
|
|
|
<button name="submit" type="submit" class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 ml-auto">Submit</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2023-05-10 14:40:52 +00:00
|
|
|
<!-- prettier-ignore -->
|
|
|
|
{% endif %}
|
2023-05-05 16:51:55 +00:00
|
|
|
<!-- prettier-ignore -->
|
|
|
|
<dl class="w-md md:w-full text-gray-900 divide-y divide-gray-200 dark:text-white dark:divide-gray-700">
|
2023-06-01 04:57:31 +00:00
|
|
|
{% set access_to_delete_interpretation = has_permission(section, Access.D, EntityType.INTERPRETATION) %}
|
|
|
|
{% set access_to_approve_interpretation = has_permission(section, Access.A, EntityType.INTERPRETATION) %}
|
|
|
|
|
2023-04-25 11:29:40 +00:00
|
|
|
<!-- prettier-ignore -->
|
2023-05-05 09:02:35 +00:00
|
|
|
{% for interpretation in section.active_interpretations %}
|
2023-05-05 16:51:55 +00:00
|
|
|
<!-- prettier-ignore -->
|
|
|
|
<dl class="bg-white dark:bg-gray-900 max-w-full p-3 text-gray-900 divide-y divide-gray-200 dark:text-white dark:divide-gray-700 m-3 border-2 border-gray-200 border-solid rounded-lg dark:border-gray-700">
|
2023-05-18 08:48:25 +00:00
|
|
|
<div class="flex flex-row pb-3 p-3 pt-0 w-2/3 md:w-full">
|
2023-05-11 15:02:14 +00:00
|
|
|
<div class="vote-block flex flex-col m-5 mr-8 justify-center items-center">
|
2023-05-10 12:07:07 +00:00
|
|
|
|
2023-06-01 04:57:31 +00:00
|
|
|
<div class="vote-button cursor-pointer" data-vote-for="interpretation" data-entity-id="{{ interpretation.id }}" data-positive="true">
|
|
|
|
<svg class="w-6 h-6 select-none
|
|
|
|
{% if interpretation.current_user_vote %}
|
|
|
|
stroke-green-500
|
|
|
|
{% endif %}
|
|
|
|
" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" > <path stroke-linecap="round" stroke-linejoin="round" d="M4.5 10.5L12 3m0 0l7.5 7.5M12 3v18" /> </svg>
|
|
|
|
</div>
|
2023-05-10 12:07:07 +00:00
|
|
|
<span
|
|
|
|
class="vote-count text-3xl select-none
|
|
|
|
{% if interpretation.vote_count < 0 %}
|
|
|
|
text-red-500
|
|
|
|
{% elif interpretation.vote_count > 0 %}
|
|
|
|
text-green-500
|
|
|
|
{% endif %}
|
|
|
|
"
|
|
|
|
>
|
|
|
|
{{ interpretation.vote_count }}
|
|
|
|
</span>
|
2023-06-01 04:57:31 +00:00
|
|
|
<div class="vote-button cursor-pointer" data-vote-for="interpretation" data-entity-id="{{ interpretation.id }}" data-positive="false">
|
|
|
|
<svg class="w-6 h-6 select-none
|
|
|
|
{% if interpretation.current_user_vote == False %}
|
|
|
|
stroke-red-500
|
|
|
|
{% endif %}
|
|
|
|
" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" d="M19.5 13.5L12 21m0 0l-7.5-7.5M12 21V3" /> </svg>
|
|
|
|
</div>
|
2023-05-10 12:07:07 +00:00
|
|
|
|
2023-05-11 15:02:14 +00:00
|
|
|
|
2023-06-01 04:57:31 +00:00
|
|
|
{% if interpretation.book.owner == current_user or access_to_approve_interpretation %}
|
2023-05-11 15:02:14 +00:00
|
|
|
<div class="approve-button select-none approve-btn mt-3 cursor-pointer" data-approve="interpretation" data-entity-id="{{ interpretation.id }}">
|
|
|
|
<!-- outline -->
|
|
|
|
<svg class="not-approved-icon w-6 h-6 {% if interpretation.approved %} hidden {% endif %}" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
|
|
|
|
</svg>
|
|
|
|
|
|
|
|
<!-- solid -->
|
|
|
|
<svg class="approved-icon w-6 h-6 {% if not interpretation.approved %} hidden {% endif %}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
|
|
|
|
<path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z" clip-rule="evenodd" />
|
|
|
|
</svg>
|
|
|
|
</div>
|
2023-06-01 04:57:31 +00:00
|
|
|
{% endif %}
|
2023-05-29 08:07:04 +00:00
|
|
|
|
2023-06-01 04:57:31 +00:00
|
|
|
{% if interpretation.user_id == current_user.id %}
|
2023-05-29 08:07:04 +00:00
|
|
|
<!--Edit & Delete interpretation-->
|
|
|
|
<div class="relative mt-1">
|
2023-06-01 04:57:31 +00:00
|
|
|
<button id="callEditInterpretationModal" data-popover-target="popover-edit" data-edit-interpretation-id="{{interpretation.id}}" data-edit-interpretation-text="{{interpretation.text}}" type="button" data-modal-target="edit_interpretation_modal" data-modal-toggle="edit_interpretation_modal" class="space-x-0.5 flex items-center">
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6"> <path stroke-linecap="round" stroke-linejoin="round" d="M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10" /> </svg>
|
|
|
|
</button>
|
|
|
|
<div data-popover id="popover-edit" role="tooltip" class="absolute z-10 invisible inline-block w-64 text-sm text-gray-500 transition-opacity duration-300 bg-white border border-gray-200 rounded-lg shadow-sm opacity-0 dark:text-gray-400 dark:border-gray-600 dark:bg-gray-800">
|
|
|
|
<div class="px-3 py-2">
|
|
|
|
<p>Edit this interpretation</p>
|
|
|
|
</div>
|
|
|
|
<div data-popper-arrow></div>
|
2023-05-29 08:07:04 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-06-01 04:57:31 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2023-06-02 07:17:55 +00:00
|
|
|
{% if interpretation.book.owner == current_user or interpretation.user_id == current_user.id or access_to_delete_interpretation %}
|
2023-06-01 04:57:31 +00:00
|
|
|
<div class="relative mt-1">
|
|
|
|
<button id="callDeleteInterpretationModal" data-popover-target="popover-delete" data-interpretation-id="{{interpretation.id}}" type="button" data-modal-target="delete_interpretation_modal" data-modal-toggle="delete_interpretation_modal" class="space-x-0.5 flex items-center">
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6"> <path stroke-linecap="round" stroke-linejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" /> </svg>
|
|
|
|
</button>
|
|
|
|
<div data-popover id="popover-delete" role="tooltip" class="absolute z-10 invisible inline-block w-64 text-sm text-gray-500 transition-opacity duration-300 bg-white border border-gray-200 rounded-lg shadow-sm opacity-0 dark:text-gray-400 dark:border-gray-600 dark:bg-gray-800">
|
|
|
|
<div class="px-3 py-2">
|
|
|
|
<p>Delete this interpretation</p>
|
|
|
|
</div>
|
|
|
|
<div data-popper-arrow></div>
|
2023-05-29 08:07:04 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-05-11 15:02:14 +00:00
|
|
|
{% endif %}
|
2023-05-05 12:48:55 +00:00
|
|
|
</div>
|
2023-06-01 04:57:31 +00:00
|
|
|
|
|
|
|
|
2023-05-05 16:51:55 +00:00
|
|
|
<!-- prettier-ignore -->
|
2023-05-11 15:02:14 +00:00
|
|
|
<dt class="flex justify-center w-full mb-1 text-gray-500 md:text-lg dark:text-gray-400 flex-col">
|
2023-06-01 11:39:42 +00:00
|
|
|
<div class="ql-snow mb-2 md:max-w-xl">
|
2023-05-22 11:44:12 +00:00
|
|
|
<div class="dark:text-white h-30 ql-editor-readonly !px-0">
|
2023-06-01 11:39:42 +00:00
|
|
|
<p>{{ display_inline_elements(interpretation.text)|safe }}</p>
|
2023-05-04 06:56:09 +00:00
|
|
|
</div>
|
2023-05-22 11:44:12 +00:00
|
|
|
</div>
|
2023-05-18 08:48:25 +00:00
|
|
|
|
|
|
|
<div class="flex border-t-2 pt-3 align-center justify-between md:w-full">
|
2023-05-10 12:07:07 +00:00
|
|
|
<div>
|
|
|
|
<span class="hidden md:inline-block">Interpretation by</span>
|
2023-05-15 09:54:41 +00:00
|
|
|
<a href="{{url_for('user.profile',user_id=interpretation.user.id)}}" class=" text-blue-500 {% if interpretation.user.is_deleted %}line-through{% endif %}">{{interpretation.user.username}}</a> on {{interpretation.created_at.strftime('%B %d, %Y')}}
|
2023-05-10 12:07:07 +00:00
|
|
|
</div>
|
2023-05-05 16:51:55 +00:00
|
|
|
<div class="flex ml-auto justify-between w-24">
|
2023-05-25 06:02:17 +00:00
|
|
|
<button data-tooltip-target="tooltip-click" data-tooltip-trigger="click" id="copyLinkButton" type="button" class="hover:dark:text-white hover:text-black focus:ring-2 rounded-full font-medium text-sm p-2.5 text-center inline-flex items-center dark:hover:text-white" data-link="{{ build_qa_url(interpretation) }}">
|
2023-05-05 13:42:20 +00:00
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6"> <path stroke-linecap="round" stroke-linejoin="round" d="M9 8.25H7.5a2.25 2.25 0 00-2.25 2.25v9a2.25 2.25 0 002.25 2.25h9a2.25 2.25 0 002.25-2.25v-9a2.25 2.25 0 00-2.25-2.25H15m0-3l-3-3m0 0l-3 3m3-3V15" /> </svg>
|
2023-05-22 13:12:21 +00:00
|
|
|
</button>
|
|
|
|
<div id="tooltip-click" role="tooltip" class="absolute z-10 invisible inline-block px-3 py-2 text-sm font-medium text-white bg-gray-900 rounded-lg shadow-sm opacity-0 tooltip dark:bg-gray-700"> Link copied! <div class="tooltip-arrow" data-popper-arrow></div> </div>
|
2023-05-05 16:51:55 +00:00
|
|
|
<div class="space-x-0.5 flex items-center">
|
2023-05-18 12:11:38 +00:00
|
|
|
<a
|
|
|
|
class="!cursor-pointer text-no-underline flex items-center"
|
2023-05-19 08:08:52 +00:00
|
|
|
href="{{ build_qa_url(interpretation) }}"
|
2023-05-18 12:11:38 +00:00
|
|
|
>
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6"> <path stroke-linecap="round" stroke-linejoin="round" d="M20.25 8.511c.884.284 1.5 1.128 1.5 2.097v4.286c0 1.136-.847 2.1-1.98 2.193-.34.027-.68.052-1.02.072v3.091l-3-3c-1.354 0-2.694-.055-4.02-.163a2.115 2.115 0 01-.825-.242m9.345-8.334a2.126 2.126 0 00-.476-.095 48.64 48.64 0 00-8.048 0c-1.131.094-1.976 1.057-1.976 2.192v4.286c0 .837.46 1.58 1.155 1.951m9.345-8.334V6.637c0-1.621-1.152-3.026-2.76-3.235A48.455 48.455 0 0011.25 3c-2.115 0-4.198.137-6.24.402-1.608.209-2.76 1.614-2.76 3.235v6.226c0 1.621 1.152 3.026 2.76 3.235.577.075 1.157.14 1.74.194V21l4.155-4.155" /> </svg>
|
|
|
|
<p class="select-none">{{interpretation.active_comments | length}}</p>
|
|
|
|
</a>
|
2023-05-05 16:51:55 +00:00
|
|
|
</div>
|
2023-05-04 06:56:09 +00:00
|
|
|
</div>
|
2023-05-05 16:51:55 +00:00
|
|
|
</div>
|
|
|
|
</dt>
|
|
|
|
</div>
|
|
|
|
</dl>
|
2023-04-25 11:29:40 +00:00
|
|
|
{% endfor %}
|
2023-05-19 11:36:55 +00:00
|
|
|
|
|
|
|
<span class="approved-interpretation-id hidden">
|
|
|
|
{% if section.approved_interpretation.approved %}
|
|
|
|
{{ section.approved_interpretation.id }}
|
|
|
|
{% endif %}
|
|
|
|
</span>
|
2023-04-25 11:29:40 +00:00
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-06-06 11:03:20 +00:00
|
|
|
<div class="flex p-10 justify-between">
|
|
|
|
<!-- prettier-ignore -->
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="{% if not section.previous_section %}cursor-not-allowed{% endif %} text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center inline-flex items-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
|
|
{% if not section.previous_section %}disabled{% endif %}>
|
|
|
|
<!-- prettier-ignore -->
|
|
|
|
<svg aria-hidden="true" class="w-5 h-5 mr-2 -ml-1 rotate-180" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" d="M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z" clip-rule="evenodd"></path> </svg>
|
|
|
|
<div class="flex flex-col items-end ml-5">
|
|
|
|
<p class="p-3">Book label</p>
|
|
|
|
<p class="p-3">Previous section</p>
|
|
|
|
</div>
|
|
|
|
</button>
|
|
|
|
<!-- prettier-ignore -->
|
2023-06-06 14:17:43 +00:00
|
|
|
{% set next_section = section.next_section %}
|
|
|
|
{% if next_section %}
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center inline-flex items-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
|
|
>
|
|
|
|
<div class="flex flex-col items-start mr-5">
|
|
|
|
<p class="p-3">Book label</p>
|
|
|
|
<p class="p-3">{{ next_section.label }}</p>
|
|
|
|
</div>
|
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
class="w-5 h-5 ml-2 -mr-1"
|
|
|
|
fill="currentColor"
|
|
|
|
viewBox="0 0 20 20"
|
|
|
|
xmlns="http://www.w3.org/2000/svg">
|
|
|
|
<path
|
|
|
|
fill-rule="evenodd"
|
|
|
|
d="M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z"
|
|
|
|
clip-rule="evenodd"></path>
|
|
|
|
</svg>
|
|
|
|
</button>
|
|
|
|
{% endif %}
|
2023-06-06 11:03:20 +00:00
|
|
|
</div>
|
2023-04-25 11:29:40 +00:00
|
|
|
</div>
|
2023-05-04 06:56:09 +00:00
|
|
|
<!-- prettier-ignore -->
|
|
|
|
{% endblock %}
|