Преглед изворни кода

Support translation of headings for embedded table panels

Jeremy Stretch пре 2 дана
родитељ
комит
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">