changeset 290:1743fd741fed

bulma (components/common): use `menu_labels.html` to translate menus
author Goffi <goffi@goffi.org>
date Mon, 28 Sep 2020 17:26:15 +0200
parents f1a39607d6a5
children 1ca9384fb681
files sat_templates/templates/bulma/components/common.html
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat_templates/templates/bulma/components/common.html	Mon Sep 28 17:25:26 2020 +0200
+++ b/sat_templates/templates/bulma/components/common.html	Mon Sep 28 17:26:15 2020 +0200
@@ -17,7 +17,7 @@
             <div class="navbar-start">
             {% for name, url in menus %}
                   <a class="navbar-item" {{ {'href': url}|xmlattr }}>
-                    {{name}}
+                    {{ml.label[name] or name}}
                   </a>
             {% endfor %}
             </div>