mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Closes #11693: Enable remote data synchronization for export templates
This commit is contained in:
13
netbox/templates/inc/sync_warning.html
Normal file
13
netbox/templates/inc/sync_warning.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{% load buttons %}
|
||||
{% load perms %}
|
||||
|
||||
{% if object.data_file and object.data_file.last_updated > object.data_synced %}
|
||||
<div class="alert alert-warning" role="alert">
|
||||
<i class="mdi mdi-alert"></i> Data is out of sync with upstream file (<a href="{{ object.data_file.get_absolute_url }}">{{ object.data_file }}</a>).
|
||||
{% if request.user|can_sync:object %}
|
||||
<div class="float-end">
|
||||
{% sync_button object %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
Reference in New Issue
Block a user