]> git.ipfire.org Git - ipfire.org.git/commitdiff
docs/tree: used DocsList module
authorRico Hoppe <rico.hoppe@ipfire.org>
Sat, 24 Feb 2024 14:01:47 +0000 (14:01 +0000)
committerRico Hoppe <rico.hoppe@ipfire.org>
Sat, 24 Feb 2024 14:01:47 +0000 (14:01 +0000)
src/templates/docs/tree.html

index e64977a03e30f4303c5a638e7efe38b0e8f8e9d7..de43eeabcac8f4b9a81ae1d3a335edaab96dade7 100644 (file)
 
        <section class="section">
                <div class="container">
-                       {% for page in pages %}
-                               {% if page.check_acl(current_user) %}
-                                       <div class="block">
-                                               <p class="is-size-6">
-                                                       {% for p, title in backend.wiki.make_breadcrumbs(page.page) %}
-                                                               <a href="{{ p }}">{{ title }}</a> /
-                                                       {% end %}
-
-                                                       <a href="{{ page.url }}">{{ page.title or _("- No Title -") }}</a>
-                                               </p>
-
-                                               <p class="is-size-7">
-                                                       {{ page.page }} &dash;
-                                                       {{ _("Last edited %s") % locale.format_date(page.timestamp, shorter=True) }}
-                                               </p>
-                                       </div>
-                               {% end %}
-                       {% end %}
+                       {% module DocsList(pages, show_author=False) %}
                </div>
        </section>
 {% end block %}