From 4fc33210bed9566f0b11a19ae5244e7bbf46901e Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Jun 05 2021 19:59:33 +0000 Subject: Add `layout.html.j2` and use it for static indexes Other changes to prefix index pages. - prefix is now shown in page title to distinguish browser tabs - search form is removed from prefix indexes - link that sends back to title is moved below page header --- diff --git a/templates/index-prefix.html.j2 b/templates/index-prefix.html.j2 index 1e9d083..88c0fc8 100644 --- a/templates/index-prefix.html.j2 +++ b/templates/index-prefix.html.j2 @@ -1,44 +1,17 @@ - -Fedora packages - - - - - +{% extends "layout.html.j2" %} -
-
- - - -
+{% block title %}"{{ prefix }}" Index - Fedora Packages{% endblock %} - {% if search_backend %} -
-
-
- -
-
- -
-
-
- {% endif %} +{% block content %} +

Packages that start with "{{ prefix }}".

Back to the packages index ↵

-

Packages that start with "{{ prefix }}".

- - -
- Sources on Pagure.
-
- +{% endblock %} diff --git a/templates/layout.html.j2 b/templates/layout.html.j2 new file mode 100644 index 0000000..0ba272d --- /dev/null +++ b/templates/layout.html.j2 @@ -0,0 +1,25 @@ + +{% block title %}Fedora Packages{% endblock %} + + + + + + +
+
+ + + +
+ + {% block content %} + {% endblock %} + +
+ {% block footer %} + Sources on Pagure.
+ {% endblock %} +
+ +