-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix broken pagination, start adding buttons
- Loading branch information
Showing
5 changed files
with
104 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,44 @@ | ||
{# Tabs #} | ||
<div class="flex flex-row w-min gap-2 mb-4"> | ||
<div | ||
class="cust-adv-tab cust-adv-tab-text active flex items-center justify-center whitespace-nowrap px-2" | ||
tabindex="0" | ||
data-tab="adventure-preview" data-activeclass="active"> | ||
{{ _('Adventure') }} | ||
</div> | ||
{% if adventure.solution_example %} | ||
<div | ||
class="cust-adv-tab cust-adv-tab-text flex items-center justify-center whitespace-nowrap px-2" | ||
tabindex="0" | ||
data-tab="adventure-answer" data-activeclass="active"> | ||
{{ _('solution_example') }} | ||
{# Set the level and keyword language for all adventure content #} | ||
<div data-level="{{adventure.level}}" data-kwlang="{{ g.keyword_lang }}"> | ||
{# Tabs #} | ||
<div class="flex flex-row w-min gap-2 mb-4"> | ||
<div | ||
class="cust-adv-tab cust-adv-tab-text active flex items-center justify-center whitespace-nowrap px-2" | ||
tabindex="0" | ||
data-tab="adventure-preview" data-activeclass="active"> | ||
{{ _('adventure') }} | ||
</div> | ||
{% if adventure.solution_example %} | ||
<div | ||
class="cust-adv-tab cust-adv-tab-text flex items-center justify-center whitespace-nowrap px-2" | ||
tabindex="0" | ||
data-tab="adventure-answer" data-activeclass="active"> | ||
{{ _('solution_example') }} | ||
</div> | ||
{% endif %} | ||
</div> | ||
{% endif %} | ||
</div> | ||
|
||
{# Panes #} | ||
<div class="shadow-md bg-white p-4"> | ||
<div data-tabtarget="adventure-preview"> | ||
<h1>{{ adventure.name }}</h1> | ||
{# Panes #} | ||
<div class="shadow-md bg-white p-4"> | ||
<div data-tabtarget="adventure-preview"> | ||
<h1>{{ adventure.name }}</h1> | ||
|
||
{% set adventure_content_topright_include = 'public-adventures2/incl-about.html' %} | ||
{% include "incl/adventure-content.html" %} | ||
{% set adventure_content_topright_include = 'public-adventures2/incl-about.html' %} | ||
{% include "incl/adventure-content.html" %} | ||
|
||
<div class="clear-both"></div> | ||
<div class="clear-both"></div> | ||
|
||
{% set public_adventures_page = True %} | ||
{% include "incl/editor-and-output.html" %} | ||
</div> | ||
{% if adventure.solution_example %} | ||
<div data-tabtarget="adventure-answer" class="hidden turn-pre-into-ace" data-level="{{adventure.level}}"> | ||
{% if adventure.is_teacher_adventure %} | ||
{{ adventure.solution_example|safe }} | ||
{% else %} | ||
{{ adventure.solution_example|commonmark }} | ||
{% endif %} | ||
{% set public_adventures_page = True %} | ||
{% include "incl/editor-and-output.html" %} | ||
</div> | ||
{% endif %} | ||
</div> | ||
{% if adventure.solution_example %} | ||
<div data-tabtarget="adventure-answer" class="hidden turn-pre-into-ace"> | ||
{% if adventure.is_teacher_adventure %} | ||
{{ adventure.solution_example|safe }} | ||
{% else %} | ||
{{ adventure.solution_example|commonmark }} | ||
{% endif %} | ||
</div> | ||
{% endif %} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters