X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/5aa13410812d3fc4b35c039bdc3f0a2edc5185a1..94a4fcc7ab9e1713dc2defc8b35c875fc90f6fa5:/src/api/templates/api/main.html diff --git a/src/api/templates/api/main.html b/src/api/templates/api/main.html old mode 100755 new mode 100644 index a718f2124..06688d0dc --- a/src/api/templates/api/main.html +++ b/src/api/templates/api/main.html @@ -1,7 +1,13 @@ -{% extends "base/base.html" %} +{% extends "2022/base_simple.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 %} @@ -35,31 +41,31 @@

{% url "catalogue_api_book" "studnia-i-wahadlo" as e1 %} - {% url "api_tag" "authors" "edgar-allan-poe" as e2 %} + {% url "catalogue_api_tag" "author" "edgar-allan-poe" as e2 %} {% blocktrans %} Each element of those lists contains a link (in a "href") attibute which points to individual resource's details, i.e.: @@ -84,7 +90,7 @@

- {% 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: {{e}}.