소스 검색

Support translation of headings for embedded table panels

Jeremy Stretch 1 개월 전
부모
커밋
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">