Browse Source

Improve visibility of modified values

jeremystretch 4 years ago
parent
commit
acdebea7f1
1 changed files with 4 additions and 1 deletions
  1. 4 1
      netbox/templates/admin/extras/configrevision/restore.html

+ 4 - 1
netbox/templates/admin/extras/configrevision/restore.html

@@ -1,4 +1,5 @@
 {% extends "admin/base_site.html" %}
 {% extends "admin/base_site.html" %}
+{% load static %}
 
 
 {% block content %}
 {% block content %}
   <p>Restore configuration #{{ object.pk }} from <strong>{{ object.created }}</strong>?</p>
   <p>Restore configuration #{{ object.pk }} from <strong>{{ object.created }}</strong>?</p>
@@ -9,14 +10,16 @@
         <th>Parameter</th>
         <th>Parameter</th>
         <th>Current Value</th>
         <th>Current Value</th>
         <th>New Value</th>
         <th>New Value</th>
+        <th></th>
       </tr>
       </tr>
     </thead>
     </thead>
     <tbody>
     <tbody>
       {% for param, current, new in params %}
       {% for param, current, new in params %}
-        <tr{% if current != new %} style="color: #cc0000"{% endif %}>
+        <tr{% if current != new %} style="color: #d7a50d"{% endif %}>
           <td>{{ param }}</td>
           <td>{{ param }}</td>
           <td>{{ current }}</td>
           <td>{{ current }}</td>
           <td>{{ new }}</td>
           <td>{{ new }}</td>
+          <td>{% if current != new %}<img src="{% static 'admin/img/icon-changelink.svg' %}" alt="*" title="Changed">{% endif %}</td>
         </tr>
         </tr>
       {% endfor %}
       {% endfor %}
     </tbody>
     </tbody>