Просмотр исходного кода

Support translation of headings for embedded table panels

Jeremy Stretch 2 дней назад
Родитель
Сommit
b904dc5c75
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      netbox/templates/inc/panel_table.html

+ 1 - 1
netbox/templates/inc/panel_table.html

@@ -3,7 +3,7 @@
 
 <div class="card {% if panel_class %}border-{{ panel_class }}{% endif %}">
   {% if heading %}
-    <h2 class="card-header{% if panel_class %} text-{{ panel_class }}{% endif %}">{{ heading }}</h2>
+    <h2 class="card-header{% if panel_class %} text-{{ panel_class }}{% endif %}">{% trans heading %}</h2>
   {% endif %}
   {% if table.rows %}
     <div class="table-responsive">