From: Rico Hoppe Date: Sat, 24 Feb 2024 14:01:16 +0000 (+0000) Subject: docs/modules/list: added a permission checker X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dea435dbcf9066e8df68ae54660e99585e9d6419;p=ipfire.org.git docs/modules/list: added a permission checker --- diff --git a/src/templates/docs/modules/list.html b/src/templates/docs/modules/list.html index bf635706..8fe2e267 100644 --- a/src/templates/docs/modules/list.html +++ b/src/templates/docs/modules/list.html @@ -1,42 +1,44 @@ {% for page in pages %} -
-

- {% if show_breadcrumbs %} - {% for url, title in page.breadcrumbs %} - {{ title }} / + {% if page.check_acl(current_user) %} +

+

+ {% if show_breadcrumbs %} + {% for url, title in page.breadcrumbs %} + {{ title }} / + {% end %} {% end %} - {% end %} - {{ page.title }} -

+ {{ page.title }} +

-

- {% if show_author %} - {{ _("Last edited %s") % locale.format_date(page.timestamp, shorter=True, relative=False) }} +

+ {% if show_author %} + {{ _("Last edited %s") % locale.format_date(page.timestamp, shorter=True, relative=False) }} - {% if page.author %} - {{ _("by") }} - {{ page.author }} + {% if page.author %} + {{ _("by") }} + {{ page.author }} + {% end %} {% end %} - {% end %} - {% if show_changes %} - {% if page.changes %} - • {{ page.changes }} + {% if show_changes %} + {% if page.changes %} + • {{ page.changes }} + {% end %} + + {% if page.previous_revision %} + + + + {% end %} {% end %} - {% if page.previous_revision %} - - + {% if not page.is_latest_revision() %} + + {% end %} - {% end %} - - {% if not page.is_latest_revision() %} - - - - {% end %} -

-
+

+
+ {% end %} {% end %}