sync_warning.html 475 B

12345678910111213
  1. {% load buttons %}
  2. {% load perms %}
  3. {% if object.data_file and object.data_file.last_updated > object.data_synced %}
  4. <div class="alert alert-warning" role="alert">
  5. <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>).
  6. {% if request.user|can_sync:object %}
  7. <div class="float-end">
  8. {% sync_button object %}
  9. </div>
  10. {% endif %}
  11. </div>
  12. {% endif %}