diff --git a/netbox/templates/extras/script_list.html b/netbox/templates/extras/script_list.html index 448de2c8d..b4c6a0519 100644 --- a/netbox/templates/extras/script_list.html +++ b/netbox/templates/extras/script_list.html @@ -20,6 +20,7 @@ {% block content %} {% for module in script_modules %} + {% include 'inc/sync_warning.html' with object=module %}
{% trans "Name" %} | -{% trans "Description" %} | -{% trans "Last Run" %} | -{% trans "Status" %} | -- | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{% trans "Name" %} | +{% trans "Description" %} | +{% trans "Last Run" %} | +{% trans "Status" %} | ++ | ||||
---|---|---|---|---|---|---|---|---|
+ {{ script.name }} + | +{{ script.description|markdown|placeholder }} | + {% if last_job %}- {{ script.name }} + {{ last_job.created|annotated_date }} | -{{ script.description|markdown|placeholder }} | - {% if last_job %} -- {{ last_job.created|annotated_date }} - | -- {% badge last_job.get_status_display last_job.get_status_color %} - | - {% else %} -{% trans "Never" %} | -{{ ''|placeholder }} | - {% endif %}
- {% if perms.extras.run_script %}
-
-
-
- {% endif %}
+ {% badge last_job.get_status_display last_job.get_status_color %}
|
-
- {{ method }} - | -- {{ stats.success }} - {{ stats.info }} - {{ stats.warning }} - {{ stats.failure }} - | -|||||||
- {{ method }} - | -- {{ stats.success }} - {{ stats.info }} - {{ stats.warning }} - {{ stats.failure }} - | -{% trans "Never" %} | +{{ ''|placeholder }} | {% endif %} - {% endwith %} - {% endfor %} - {% endwith %} - -