-{% extends "base/base.html" %}
+{% extends request.EXPERIMENTS.layout.value|yesno:"2022/base_simple.html,base/base.html" %}
{% load i18n %}
{% load build_absolute_uri from fnp_common %}
+{% block settings %}
+ {% load title %}
+ {% trans "WolneLektury.pl API" as title %}
+ {% title title %}
+{% endblock %}
+
{% block title %}{% trans "WolneLektury.pl API" %}{% endblock %}
{% block bodyid %}api{% endblock %}
</p>
<ul>
- <li><a href='{% url "catalogue_api_book_list" "" %}'>
- {% url "catalogue_api_book_list" "" %}</a> – {% trans "All books" %}</li>
- <li><a href='{% url "catalogue_api_audiobook_list" "" %}'>
- {% url "catalogue_api_audiobook_list" "" %}</a> – {% trans "Audiobooks" %}</li>
- <li><a href='{% url "catalogue_api_daisy_list" "" %}'>
- {% url "catalogue_api_daisy_list" "" %}</a> – {% trans "DAISY" %}</li>
+ <li><a href='{% url "catalogue_api_book_list" "" %}'>
+ {% url "catalogue_api_book_list" "" %}</a> – {% trans "All books" %}</li>
+ <li><a href='{% url "catalogue_api_audiobook_list" "" %}'>
+ {% url "catalogue_api_audiobook_list" "" %}</a> – {% trans "Audiobooks" %}</li>
+ <li><a href='{% url "catalogue_api_daisy_list" "" %}'>
+ {% url "catalogue_api_daisy_list" "" %}</a> – {% trans "DAISY" %}</li>
- <li><a href='{% url "catalogue_api_tag_list" "author" %}'>
- {% url "catalogue_api_tag_list" "author" %}</a> – {% trans "List of all authors" %}</li>
- <li><a href='{% url "catalogue_api_tag_list" "epoch" %}'>
- {% url "catalogue_api_tag_list" "epoch" %}</a> – {% trans "List of all epochs" %}</li>
- <li><a href='{% url "catalogue_api_tag_list" "genre" %}'>
- {% url "catalogue_api_tag_list" "genre" %}</a> – {% trans "List of all genres" %}</li>
- <li><a href='{% url "catalogue_api_tag_list" "kind" %}'>
- {% url "catalogue_api_tag_list" "kind" %}</a> – {% trans "List of all kinds" %}</li>
+ <li><a href='{% url "catalogue_api_tag_list" "author" %}'>
+ {% url "catalogue_api_tag_list" "author" %}</a> – {% trans "List of all authors" %}</li>
+ <li><a href='{% url "catalogue_api_tag_list" "epoch" %}'>
+ {% url "catalogue_api_tag_list" "epoch" %}</a> – {% trans "List of all epochs" %}</li>
+ <li><a href='{% url "catalogue_api_tag_list" "genre" %}'>
+ {% url "catalogue_api_tag_list" "genre" %}</a> – {% trans "List of all genres" %}</li>
+ <li><a href='{% url "catalogue_api_tag_list" "kind" %}'>
+ {% url "catalogue_api_tag_list" "kind" %}</a> – {% trans "List of all kinds" %}</li>
- <li><a href='{% url "catalogue_api_tag_list" "theme" %}'>
- {% url "catalogue_api_tag_list" "theme" %}</a> – {% trans "List of all themes" %}</li>
- <li><a href='{% url "catalogue_api_collections" %}'>
- {% url "catalogue_api_collections" %}</a> – {% trans "Collections" %}</li>
+ <li><a href='{% url "catalogue_api_tag_list" "theme" %}'>
+ {% url "catalogue_api_tag_list" "theme" %}</a> – {% trans "List of all themes" %}</li>
+ <li><a href='{% url "catalogue_api_collections" %}'>
+ {% url "catalogue_api_collections" %}</a> – {% trans "Collections" %}</li>
</ul>
<p>
</p>
<p>
- {% url "api_fragment" "sen-nocy-letniej" "1290526312912-3814598192" as f %}
+ {% url "catalogue_api_fragment" "sen-nocy-letniej" "1290526312912-3814598192" as f %}
{% blocktrans with "/api/authors/william-shakespeare/themes/zabawa/fragments/" as e %}
The same way, using also books and themes, you can search for a list of fragments:
<a href="{{e}}">{{e}}</a>.
-{% extends "base/base.html" %}
+{% extends request.EXPERIMENTS.layout.value|yesno:"2022/base_simple.html,base/base.html" %}
{% load i18n %}
+{% block settings %}
+ {% load title %}
+ {% trans "Authorize access to Wolne Lektury" as title %}
+ {% title title %}
+{% endblock %}
+
{% block titleextra %}{% trans "Authorize access to Wolne Lektury" %}{% endblock %}
{% block body %}
realms, credentials = endpoint.get_realms_and_credentials(
**oauthlib_request(request))
except OAuth1Error as e:
- return HttpResponse(e.message, status=400)
+ return HttpResponse(str(e), status=400)
callback = request.GET.get('oauth_callback')
form = OAuthAuthenticationForm(initial={
slug=self.kwargs['slug']
)
except Http404:
- if self.method == 'PUT':
+ if self.request.method == 'PUT':
return Tag(
category=self.kwargs['category'],
slug=self.kwargs['slug']
-{% extends "base/base.html" %}
+{% extends request.EXPERIMENTS.layout.value|yesno:"2022/base_simple.html,base/base.html" %}
{% load i18n pagination_tags %}
{% load set_get from set_get %}
+{% block settings %}
+ {% load title %}
+ {% trans "Footnotes" as title %}
+ {% title title %}
+{% endblock %}
{% block bodyid %}footnotes{% endblock %}
{% extends '2022/base.html' %}
-
-{% block global-content %}
- <div class="l-container">
- <div class="l-breadcrumb">
- <a href="/"><span>Strona główna</span></a>
- <a href="{{ page.get_absolute_url }}">{{ page.title }}</a>
- </div>
- </div>
+{% block settings %}
+ {% load title %}
+ {% title page.title %}
+{% endblock %}
- <main class="l-main">
+{% block main %}
<div class="l-article__title">
<h1>{{ page.title }}</h1>
</div>
</div>
</div>
</article>
- </main>
-
{% endblock %}
-{% extends "base/base.html" %}
+{% extends request.EXPERIMENTS.layout.value|yesno:"2022/base_simple.html,base/base.html" %}
+
+{% block settings %}
+ {% load title %}
+ {% title 'Dodaj ISBN' %}
+{% endblock %}
{% block title %}Dodaj ISBN{% endblock %}
-{% extends "base/base.html" %}
+{% extends request.EXPERIMENTS.layout.value|yesno:"2022/base_simple.html,base/base.html" %}
+
+{% block settings %}
+ {% load title %}
+ {% title 'Przypisane ISBN' %}
+{% endblock %}
{% block title %}Przypisane ISBN{% endblock %}
{% block body %}
<h1>Przypisane ISBN</h1>
- <h2>{{ title }}</h2>
+ <div class="normal-text">
+ <h2>{{ title }}</h2>
<dl>
{% for format, isbn in isbn_formats %}
<dt>{{ format }}</dt><dd>{{ isbn }}</dd>
{% endfor %}
</dl>
+ </div>
{% endblock %}
-{% extends "base/base.html" %}
+{% extends request.EXPERIMENTS.layout.value|yesno:"2022/base_simple.html,base/base.html" %}
+
+{% block settings %}
+ {% load title %}
+ {% title 'Potwierdź dane' %}
+{% endblock %}
{% block title %}Potwierdź dane{% endblock %}
-{% extends "base/base.html" %}
+{% extends request.EXPERIMENTS.layout.value|yesno:"2022/base_simple.html,base/base.html" %}
+
+{% block settings %}
+ {% load title %}
+ {% title 'Przypisane ISBN' %}
+{% endblock %}
{% block title %}Znaczniki ISBN{% endblock %}
{% block body %}
<h1>Znaczniki ISBN</h1>
+ <div class="normal-text">
<h2>{{ title }}</h2>
-<code>{% for format, content_type, isbn in isbn_formats %}
+ <code>{% 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><br>
<meta refines="#{{ format }}" id="{{ format }}-id" property="dcterms:identifier">ISBN-{{ isbn }}</meta><br>
<meta refines="#{{ format }}-id" property="identifier-type">ISBN</meta><br>
<meta refines="#{{ format }}" property="dcterms:format">{{ content_type }}</meta><br>{% endfor %}</code>
-{% endblock %}
\ No newline at end of file
+ </div>
+{% endblock %}
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
-{% 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 %}
-{% 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 %}
-{% 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!" %}
{% else %}
{% if waiting %}
<h1>
- <img src="{% static "img/indicator.gif" %}" alt="{% trans 'Please wait' %}"/>
{% trans "Your file is being prepared, please wait." %}
</h1>
<div class="normal-text">
- <p>{% blocktrans with d=waiting.description %}The file you requested was: <em>{{d}}</em>.{% endblocktrans %}</p>
+ <p>
+ <img src="{% static "img/indicator.gif" %}" alt="{% trans 'Please wait' %}"/>
+ {% blocktrans with d=waiting.description %}The file you requested was: <em>{{d}}</em>.{% endblocktrans %}
+ </p>
<p>
{% blocktrans %}<strong>Be aware:</strong> Generating the file can take a while.
color: #92BD39;
}
- > p, form {
+ > p, form, > .normal-text {
min-width: 300px;
margin-left: 50px;
margin-right: 50px;
+ width: auto;
}
}
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap" rel="stylesheet">
{% tracking_code %}
+ {% block extrahead %}{% endblock %}
</head>
<body>
{% include '2022/header.html' %}
-{% 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 %}
-{% 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 %}