-{% for format, content_type, isbn in isbn_formats %}
+ {% for format, content_type, isbn in isbn_formats %}
<dc:relation.hasFormat id="{{ format }}" xmlns:dc="http://purl.org/dc/elements/1.1/">https://wolnelektury.pl/{% if format == 'html' %}katalog/lektura{% else %}media/book/{{ format }}{% endif %}/{{ slug }}.{{ format }}</dc:relation.hasFormat>
<meta refines="#{{ format }}" id="{{ format }}-id" property="dcterms:identifier">ISBN-{{ isbn }}</meta>
<meta refines="#{{ format }}-id" property="identifier-type">ISBN</meta>
<meta refines="#{{ format }}" property="dcterms:format">{{ content_type }}</meta> {% endfor %}
-{% endblock %}
\ No newline at end of file
+
+{% endblock %}
diff --git a/src/lesmianator/views.py b/src/lesmianator/views.py
index e179c1483..b4cbf69b3 100644
--- a/src/lesmianator/views.py
+++ b/src/lesmianator/views.py
@@ -16,7 +16,7 @@ def main_page(request):
return render(
request,
- 'lesmianator/lesmianator.html',
+ 'lesmianator/2022/lesmianator.html' if request.EXPERIMENTS['layout'].value else 'lesmianator/lesmianator.html',
{"last": last, "shelves": shelves})
@cache.never_cache
diff --git a/src/reporting/templates/reporting/main.html b/src/reporting/templates/reporting/main.html
index bae491e32..a69e9d165 100644
--- a/src/reporting/templates/reporting/main.html
+++ b/src/reporting/templates/reporting/main.html
@@ -1,7 +1,13 @@
-{% extends "base/base.html" %}
+{% extends request.EXPERIMENTS.layout.value|yesno:"2022/base_simple.html,base/base.html" %}
{% load i18n %}
{% load reporting_stats catalogue_tags %}
+{% block settings %}
+ {% load title %}
+ {% trans "Reports" as title %}
+ {% title title %}
+{% endblock %}
+
{% block titleextra %}{% trans "Reports" %}{% endblock %}
{% block bodyid %}reports-stats{% endblock %}
diff --git a/src/stats/templates/stats/top.html b/src/stats/templates/stats/top.html
index f5ee6c293..ed6867e4a 100644
--- a/src/stats/templates/stats/top.html
+++ b/src/stats/templates/stats/top.html
@@ -1,4 +1,9 @@
-{% extends 'base/base.html' %}
+{% extends request.EXPERIMENTS.layout.value|yesno:"2022/base_simple.html,base/base.html" %}
+
+{% block settings %}
+ {% load title %}
+ {% title 'Top' %}
+{% endblock %}
{% block body %}
diff --git a/src/waiter/templates/waiter/wait.html b/src/waiter/templates/waiter/wait.html
index 22f5af823..c004895e1 100644
--- a/src/waiter/templates/waiter/wait.html
+++ b/src/waiter/templates/waiter/wait.html
@@ -1,7 +1,15 @@
-{% extends "base/base.html" %}
+{% extends request.EXPERIMENTS.layout.value|yesno:"2022/base_simple.html,base/base.html" %}
{% load i18n %}
{% load static from static %}
+
+{% block settings %}
+ {% load title %}
+ {% trans "Your file is being prepared, please wait." as title %}
+ {% title title %}
+{% endblock %}
+
+
{% block titleextra %}
{% if file_url %}
{% trans "The file is ready for download!" %}
@@ -42,12 +50,14 @@
{% else %}
{% if waiting %}
-
{% trans "Your file is being prepared, please wait." %}
-
{% blocktrans with d=waiting.description %}The file you requested was: {{d}}.{% endblocktrans %}
+
+
+ {% blocktrans with d=waiting.description %}The file you requested was: {{d}}.{% endblocktrans %}
+
{% blocktrans %}Be aware: Generating the file can take a while.
diff --git a/src/wolnelektury/static/2022/more.scss b/src/wolnelektury/static/2022/more.scss
index 8f95d12f9..424125394 100644
--- a/src/wolnelektury/static/2022/more.scss
+++ b/src/wolnelektury/static/2022/more.scss
@@ -318,10 +318,11 @@ form {
color: #92BD39;
}
- > p, form {
+ > p, form, > .normal-text {
min-width: 300px;
margin-left: 50px;
margin-right: 50px;
+ width: auto;
}
}
diff --git a/src/wolnelektury/templates/2022/base.html b/src/wolnelektury/templates/2022/base.html
index 12bae5959..f314f1f85 100644
--- a/src/wolnelektury/templates/2022/base.html
+++ b/src/wolnelektury/templates/2022/base.html
@@ -22,6 +22,7 @@
{% tracking_code %}
+ {% block extrahead %}{% endblock %}
{% include '2022/header.html' %}
diff --git a/src/wolnelektury/templates/publish_plan.html b/src/wolnelektury/templates/publish_plan.html
index ffc11501e..22e59a97f 100644
--- a/src/wolnelektury/templates/publish_plan.html
+++ b/src/wolnelektury/templates/publish_plan.html
@@ -1,6 +1,12 @@
-{% extends "base/base.html" %}
+{% extends request.EXPERIMENTS.layout.value|yesno:"2022/base_simple.html,base/base.html" %}
{% load i18n %}
+{% block settings %}
+ {% load title %}
+ {% trans "Publishing plan" as title %}
+ {% title title %}
+{% endblock %}
+
{% block titleextra %}{% trans "Publishing plan" %}{% endblock titleextra %}
diff --git a/src/wolnelektury/templates/user.html b/src/wolnelektury/templates/user.html
index 3adb03028..40c7950d4 100644
--- a/src/wolnelektury/templates/user.html
+++ b/src/wolnelektury/templates/user.html
@@ -1,7 +1,13 @@
-{% extends "base/base.html" %}
+{% extends request.EXPERIMENTS.layout.value|yesno:"2022/base_simple.html,base/base.html" %}
{% load i18n %}
+{% block settings %}
+ {% load title %}
+ {% trans "User" as title %}
+ {% title title %}
+{% endblock %}
+
{% block titleextra %}{% trans "User" %}{% endblock %}
{% block body %}
--
2.20.1