You are here

cms_content_sync_sync_health_overview.html.twig in CMS Content Sync 8

Template file for the show usage modal.

File

modules/cms_content_sync_health/templates/cms_content_sync_sync_health_overview.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Template file for the show usage modal.
  5. */
  6. #}
  7. <h2>
  8. {{ 'Sync Core'|trans }}
  9. </h2>
  10. {% for host, core in sync_cores %}
  11. <h3>{{ host }}</h3>
  12. {% if core %}
  13. {% if newest_version == core.version %}
  14. <div class="messages messages--status">Version up to date: {{ core.version }}</div>
  15. {% elseif newest_version %}
  16. <div class="messages messages--warning">Version outdated: {{ core.version }} (newest version is {{ newest_version }})</div>
  17. {% else %}
  18. <div class="messages messages--warning">Version: {{ core.version }} (newest version is unknown as the "update" module is disabled)</div>
  19. {% endif %}
  20. {% if core.error_log %}
  21. <div class="messages messages--warning">
  22. Error log from today:
  23. <ul>
  24. {% for msg in core.error_log %}
  25. <li>{{ msg.time|format_date('html_time') }}: {{ msg.msg }}</li>
  26. {% endfor %}
  27. </ul>
  28. </div>
  29. {% elseif core.warning_log %}
  30. <div class="messages messages--warning">
  31. Warning log from today:
  32. <ul>
  33. {% for msg in core.warning_log %}
  34. <li>{{ msg.time|format_date('html_time') }}: {{ msg.msg }}</li>
  35. {% endfor %}
  36. </ul>
  37. </div>
  38. {% else %}
  39. <div class="messages messages--status">No error or warning messages.</div>
  40. {% endif %}
  41. <ul>
  42. <li>Sites pushed {{ core.usage.today.entitiesPushedFromSites }} entities today ({{ core.usage.today.rootEntitiesPushedFromSites }} root entities)</li>
  43. <li>Sites pulled {{ core.usage.today.entitiesPulledBySites }} entities today ({{ core.usage.today.rootEntitiesPulledBySites }} root entities)</li>
  44. </ul>
  45. {% else %}
  46. <div class="messages messages--error">Offline</div>
  47. {% endif %}
  48. {% endfor %}
  49. <br>
  50. <h2>
  51. {{ 'Config issues'|trans }}
  52. </h2>
  53. <h3>{{ 'Local version differences'|trans }}</h3>
  54. {% if version_differences.local %}
  55. <div class="messages messages--error">
  56. The Flows of this site need to be updated:
  57. <ul>
  58. {% for msg in version_differences.local %}
  59. <li>{{ msg }}</li>
  60. {% endfor %}
  61. </ul>
  62. </div>
  63. {% else %}
  64. <div class="messages messages--status">
  65. All Flows from your local site are up to date.
  66. </div>
  67. {% endif %}
  68. <h3>{{ 'Remote version differences'|trans }}</h3>
  69. <a href="{{ path('entity.cms_content_sync.sync_health.version_mismatches') }}" class="button">{{ 'Check'|t }}</a>
  70. <br>
  71. <h2>
  72. {{ 'Sync issues'|trans }}
  73. </h2>
  74. {% if push_failures_hard.total or pull_failures_hard.total or error_log %}
  75. <div class="messages messages--warning">
  76. {% if push_failures_hard.total %}
  77. <div>There were errors pushing {{ push_failures_hard.total }} entities: <a href="{{ url('entity.cms_content_sync.sync_health.pushing') }}">details</a>.</div>
  78. {% endif %}
  79. {% if pull_failures_hard.total %}
  80. <div>There were errors pulling {{ pull_failures_hard.total }} entities: <a href="{{ url('entity.cms_content_sync.sync_health.pulling') }}">details</a>.</div>
  81. {% endif %}
  82. {% if error_log %}
  83. Last 10 Content Sync error messages:
  84. <ul>
  85. {% for msg in error_log %}
  86. <li>{{ msg|raw }}</li>
  87. {% endfor %}
  88. </ul>
  89. {% endif %}
  90. </div>
  91. {% endif %}
  92. {% if warning_log or site_log_disabled %}
  93. <div class="messages messages--warning">
  94. {% if site_log_disabled %}
  95. <div>The site log is disabled, so there's no report on log messages available.</div>
  96. {% endif %}
  97. {% if warning_log %}
  98. Last 10 Content Sync warning messages:
  99. <ul>
  100. {% for msg in warning_log %}
  101. <li>{{ msg|raw }}</li>
  102. {% endfor %}
  103. </ul>
  104. {% endif %}
  105. </div>
  106. {% endif %}
  107. {% if not push_failures_hard.total and not pull_failures_hard.total and not error_log and not warning_log and not site_log_disabled %}
  108. <div class="messages messages--status">
  109. There were no errors pushing or pulling entities on this site.
  110. </div>
  111. {% endif %}