Browse Source

Fix changelog table action labels

Jeremy Stretch 6 năm trước cách đây
mục cha
commit
a2b0da2608
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      netbox/extras/tables.py

+ 3 - 3
netbox/extras/tables.py

@@ -38,11 +38,11 @@ OBJECTCHANGE_TIME = """
 """
 """
 
 
 OBJECTCHANGE_ACTION = """
 OBJECTCHANGE_ACTION = """
-{% if record.action == 1 %}
+{% if record.action == 'create' %}
     <span class="label label-success">Created</span>
     <span class="label label-success">Created</span>
-{% elif record.action == 2 %}
+{% elif record.action == 'update' %}
     <span class="label label-primary">Updated</span>
     <span class="label label-primary">Updated</span>
-{% elif record.action == 3 %}
+{% elif record.action == 'delete' %}
     <span class="label label-danger">Deleted</span>
     <span class="label label-danger">Deleted</span>
 {% endif %}
 {% endif %}
 """
 """