Jeremy Stretch 5 лет назад
Родитель
Сommit
790e1ee2e4

+ 1 - 1
netbox/templates/circuits/circuit.html

@@ -41,7 +41,7 @@
         {% endif %}
     </div>
     <h1>{{ object }}</h1>
-    {% include 'inc/created_updated.html' with obj=object %}
+    {% include 'inc/created_updated.html' %}
     <div class="pull-right noprint">
         {% custom_links object %}
     </div>

+ 1 - 1
netbox/templates/circuits/provider.html

@@ -41,7 +41,7 @@
         {% endif %}
     </div>
     <h1>{{ object }}</h1>
-    {% include 'inc/created_updated.html' with obj=object %}
+    {% include 'inc/created_updated.html' %}
     <div class="pull-right noprint">
         {% custom_links object %}
     </div>

+ 1 - 1
netbox/templates/dcim/cable.html

@@ -23,7 +23,7 @@
         {% endif %}
     </div>
     <h1>{% block title %}Cable {{ object }}{% endblock %}</h1>
-    {% include 'inc/created_updated.html' with obj=object %}
+    {% include 'inc/created_updated.html' %}
     <div class="pull-right noprint">
         {% custom_links object %}
     </div>

+ 1 - 1
netbox/templates/dcim/device/base.html

@@ -82,7 +82,7 @@
         {% endif %}
     </div>
     <h1>{{ object }}</h1>
-    {% include 'inc/created_updated.html' with obj=object %}
+    {% include 'inc/created_updated.html' %}
     <div class="pull-right noprint">
         {% custom_links object %}
     </div>

+ 1 - 1
netbox/templates/dcim/devicetype.html

@@ -62,7 +62,7 @@
         {% endif %}
     </div>
     <h1>{{ object.manufacturer }} {{ object.model }}</h1>
-    {% include 'inc/created_updated.html' with obj=object %}
+    {% include 'inc/created_updated.html' %}
     <div class="pull-right noprint">
         {% custom_links object %}
     </div>

+ 1 - 1
netbox/templates/dcim/powerfeed.html

@@ -44,7 +44,7 @@
         {% endif %}
     </div>
     <h1>{% block title %}{{ object }}{% endblock %}</h1>
-    {% include 'inc/created_updated.html' with obj=object %}
+    {% include 'inc/created_updated.html' %}
     <div class="pull-right noprint">
         {% custom_links object %}
     </div>

+ 2 - 2
netbox/templates/dcim/powerpanel.html

@@ -40,7 +40,7 @@
         {% endif %}
     </div>
     <h1>{% block title %}{{ object }}{% endblock %}</h1>
-    {% include 'inc/created_updated.html' with obj=powerpanel %}
+    {% include 'inc/created_updated.html' %}
     <div class="pull-right noprint">
         {% custom_links object %}
     </div>
@@ -85,7 +85,7 @@
         {% plugin_left_page object %}
     </div>
 	<div class="col-md-6">
-        {% include 'inc/custom_fields_panel.html' with obj=powerpanel %}
+        {% include 'inc/custom_fields_panel.html' with obj=object %}
         {% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='dcim:powerpanel_list' %}
         {% plugin_right_page object %}
     </div>

+ 1 - 1
netbox/templates/dcim/rack.html

@@ -52,7 +52,7 @@
         {% endif %}
     </div>
     <h1>{% block title %}Rack {{ object }}{% endblock %}</h1>
-    {% include 'inc/created_updated.html' with obj=object %}
+    {% include 'inc/created_updated.html' %}
     <div class="pull-right noprint">
         <button class="btn btn-sm btn-default toggle-images" selected="selected">
             <span class="mdi mdi-checkbox-marked-circle-outline" aria-hidden="true"></span> Show Images

+ 2 - 2
netbox/templates/dcim/rackreservation.html

@@ -37,7 +37,7 @@
         {% endif %}
     </div>
     <h1>{% block title %}{{ object }}{% endblock %}</h1>
-    {% include 'inc/created_updated.html' with obj=rackreservation %}
+    {% include 'inc/created_updated.html' %}
     <div class="pull-right noprint">
         {% custom_links object %}
     </div>
@@ -122,7 +122,7 @@
                 </tr>
             </table>
         </div>
-        {% include 'inc/custom_fields_panel.html' with obj=rackreservation %}
+        {% include 'inc/custom_fields_panel.html' with obj=object %}
         {% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='dcim:rackreservation_list' %}
         {% plugin_left_page object %}
 	</div>

+ 1 - 1
netbox/templates/dcim/site.html

@@ -46,7 +46,7 @@
         {% endif %}
     </div>
     <h1>{% block title %}{{ object }}{% endblock %}</h1>
-    {% include 'inc/created_updated.html' with obj=object %}
+    {% include 'inc/created_updated.html' %}
     <div class="pull-right noprint">
         {% custom_links object %}
     </div>

+ 1 - 1
netbox/templates/dcim/virtualchassis.html

@@ -38,7 +38,7 @@
         {% endif %}
     </div>
     <h1>{% block title %}{{ object }}{% endblock %}</h1>
-    {% include 'inc/created_updated.html' with obj=object %}
+    {% include 'inc/created_updated.html' %}
     <div class="pull-right noprint">
         {% custom_links object %}
     </div>

+ 1 - 1
netbox/templates/extras/tag.html

@@ -37,7 +37,7 @@
         {% endif %}
     </div>
     <h1>{% block title %}Tag: {{ object }}{% endblock %}</h1>
-    {% include 'inc/created_updated.html' with obj=tag %}
+    {% include 'inc/created_updated.html' %}
     <ul class="nav nav-tabs">
         <li role="presentation"{% if not active_tab %} class="active"{% endif %}>
             <a href="{{ object.get_absolute_url }}">Tag</a>

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

@@ -1,3 +1,3 @@
 <p>
-    <small class="text-muted">Created {{ obj.created }} &middot; Updated <span title="{{ obj.last_updated }}">{{ obj.last_updated|timesince }}</span> ago</small>
+    <small class="text-muted">Created {{ object.created }} &middot; Updated <span title="{{ object.last_updated }}">{{ object.last_updated|timesince }}</span> ago</small>
 </p>

+ 1 - 1
netbox/templates/ipam/aggregate.html

@@ -39,7 +39,7 @@
         {% endif %}
     </div>
     <h1>{% block title %}{{ object }}{% endblock %}</h1>
-    {% include 'inc/created_updated.html' with obj=object %}
+    {% include 'inc/created_updated.html' %}
     {% include 'ipam/inc/toggle_available.html' %}
     <div class="pull-right noprint">
         {% custom_links object %}

+ 1 - 1
netbox/templates/ipam/ipaddress.html

@@ -42,7 +42,7 @@
         {% endif %}
     </div>
     <h1>{% block title %}{{ object }}{% endblock %}</h1>
-    {% include 'inc/created_updated.html' with obj=object %}
+    {% include 'inc/created_updated.html' %}
     <div class="pull-right noprint">
         {% custom_links object %}
     </div>

+ 1 - 1
netbox/templates/ipam/prefix.html

@@ -52,7 +52,7 @@
         {% endif %}
     </div>
     <h1>{% block title %}{{ object }}{% endblock %}</h1>
-    {% include 'inc/created_updated.html' with obj=object %}
+    {% include 'inc/created_updated.html' %}
     {% include 'ipam/inc/toggle_available.html' %}
     <div class="pull-right noprint">
         {% custom_links object %}

+ 1 - 1
netbox/templates/ipam/routetarget.html

@@ -38,7 +38,7 @@
         {% endif %}
     </div>
     <h1>{% block title %}Route target {{ object }}{% endblock %}</h1>
-    {% include 'inc/created_updated.html' with obj=object %}
+    {% include 'inc/created_updated.html' %}
     <div class="pull-right noprint">
         {% custom_links object %}
     </div>

+ 2 - 2
netbox/templates/ipam/service.html

@@ -36,7 +36,7 @@
     {% endif %}
 </div>
 <h1>{% block title %}{{ object }}{% endblock %}</h1>
-{% include 'inc/created_updated.html' with obj=service %}
+{% include 'inc/created_updated.html' %}
 <div class="pull-right noprint">
     {% custom_links object %}
 </div>
@@ -81,7 +81,7 @@
                 </tr>
 		    </table>
         </div>
-        {% include 'inc/custom_fields_panel.html' with obj=service %}
+        {% include 'inc/custom_fields_panel.html' with obj=object %}
         {% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='ipam:service_list' %}
         {% plugin_left_page object %}
     </div>

+ 1 - 1
netbox/templates/ipam/vlan.html

@@ -44,7 +44,7 @@
         {% endif %}
     </div>
     <h1>{% block title %}VLAN {{ object.display_name }}{% endblock %}</h1>
-    {% include 'inc/created_updated.html' with obj=object %}
+    {% include 'inc/created_updated.html' %}
     <div class="pull-right noprint">
         {% custom_links object %}
     </div>

+ 1 - 1
netbox/templates/ipam/vrf.html

@@ -38,7 +38,7 @@
         {% endif %}
     </div>
     <h1>{% block title %}VRF {{ object }}{% endblock %}</h1>
-    {% include 'inc/created_updated.html' with obj=object %}
+    {% include 'inc/created_updated.html' %}
     <div class="pull-right noprint">
         {% custom_links object %}
     </div>

+ 2 - 2
netbox/templates/secrets/secret.html

@@ -26,7 +26,7 @@
         {% endif %}
     </div>
     <h1>{% block title %}{{ object }}{% endblock %}</h1>
-    {% include 'inc/created_updated.html' with obj=secret %}
+    {% include 'inc/created_updated.html' %}
     <div class="pull-right noprint">
         {% custom_links object %}
     </div>
@@ -66,7 +66,7 @@
                 </tr>
             </table>
         </div>
-        {% include 'inc/custom_fields_panel.html' with obj=secret %}
+        {% include 'inc/custom_fields_panel.html' with obj=object %}
         {% plugin_left_page object %}
 	</div>
 	<div class="col-md-6">

+ 1 - 1
netbox/templates/tenancy/tenant.html

@@ -41,7 +41,7 @@
         {% endif %}
     </div>
     <h1>{% block title %}{{ object }}{% endblock %}</h1>
-    {% include 'inc/created_updated.html' with obj=object %}
+    {% include 'inc/created_updated.html' %}
     <div class="pull-right noprint">
         {% custom_links object %}
     </div>

+ 1 - 1
netbox/templates/virtualization/cluster.html

@@ -41,7 +41,7 @@
         {% endif %}
     </div>
     <h1>{% block title %}{{ object }}{% endblock %}</h1>
-    {% include 'inc/created_updated.html' with obj=object %}
+    {% include 'inc/created_updated.html' %}
     <div class="pull-right noprint">
         {% custom_links object %}
     </div>

+ 1 - 1
netbox/templates/virtualization/virtualmachine.html

@@ -46,7 +46,7 @@
         {% endif %}
     </div>
     <h1>{% block title %}{{ object }}{% endblock %}</h1>
-    {% include 'inc/created_updated.html' with obj=object %}
+    {% include 'inc/created_updated.html' %}
     <div class="pull-right noprint">
         {% custom_links object %}
     </div>