cms_content_sync_sync_health_overview.html.twig in CMS Content Sync 2.1.x
Template file for the show usage modal.
1 theme call to cms_content_sync_sync_health_overview.html.twig
- SyncHealth::overview in modules/
cms_content_sync_health/ src/ Controller/ SyncHealth.php - Render the overview page.
File
modules/cms_content_sync_health/templates/cms_content_sync_sync_health_overview.html.twigView source
- {#
- /**
- * @file
- * Template file for the show usage modal.
- */
- #}
- <h2>
- {{ 'Sync Core'|trans }}
- </h2>
-
- {% for host, core in sync_cores %}
- <h3>{{ host }}</h3>
- {% if core %}
- {% if newest_version == core.version %}
- <div class="messages messages--status">Version up to date: {{ core.version }}</div>
- {% elseif newest_version %}
- <div class="messages messages--warning">Version outdated: {{ core.version }} (newest version is {{ newest_version }})</div>
- {% else %}
- <div class="messages messages--warning">Version: {{ core.version }} (newest version is unknown as the "update" module is disabled)</div>
- {% endif %}
-
- {% if core.error_log %}
- <div class="messages messages--warning">
- Error log from today:
- <ul>
- {% for msg in core.error_log %}
- <li>{{ msg.time|format_date('html_time') }}: {{ msg.msg }}</li>
- {% endfor %}
- </ul>
- </div>
- {% elseif core.warning_log %}
- <div class="messages messages--warning">
- Warning log from today:
- <ul>
- {% for msg in core.warning_log %}
- <li>{{ msg.time|format_date('html_time') }}: {{ msg.msg }}</li>
- {% endfor %}
- </ul>
- </div>
- {% else %}
- <div class="messages messages--status">No error or warning messages.</div>
- {% endif %}
-
- {% if core.usage.contract.monthly.updateCount matches '/^\\d+$/' %}
- <h4>Contract usage</h4>
- <ul>
- <li>This month: {{ core.usage.contract.monthly.updateCount }}</li>
- </ul>
- {% endif %}
-
- <h4>This site</h4>
- <ul>
- {% if core.usage.site.monthly.updateCount matches '/^\\d+$/' %}
- <li>Updates received this month: {{ core.usage.site.monthly.updateCount }}</li>
- {% endif %}
- {% if core.usage.site.daily.updateCount matches '/^\\d+$/' %}
- <li>Updates received today: {{ core.usage.site.daily.updateCount }}</li>
- {% endif %}
- {% if core.usage.site.hourly.updateCount matches '/^\\d+$/' %}
- <li>Updates received this hour: {{ core.usage.site.hourly.updateCount }}</li>
- {% endif %}
- </ul>
- {% else %}
- <div class="messages messages--error">Offline</div>
- {% endif %}
- {% endfor %}
-
-
-
- <br>
- <h2>
- {{ 'Config issues'|trans }}
- </h2>
-
- <h3>{{ 'Local version differences'|trans }}</h3>
- {% if version_differences.local %}
- <div class="messages messages--error">
- The Flows of this site need to be updated:
- <ul>
- {% for msg in version_differences.local %}
- <li>{{ msg }}</li>
- {% endfor %}
- </ul>
- </div>
- {% else %}
- <div class="messages messages--status">
- All Flows from your local site are up to date.
- </div>
- {% endif %}
-
- <h3>{{ 'Remote version differences'|trans }}</h3>
- <a href="{{ path('entity.cms_content_sync.sync_health.version_mismatches') }}" class="button">{{ 'Check'|t }}</a>
-
-
- <br>
- <h2>
- {{ 'Sync issues'|trans }}
- </h2>
-
- {% if push_failures_hard.total or pull_failures_hard.total or error_log %}
- <div class="messages messages--warning">
- {% if push_failures_hard.total %}
- <div>There were errors pushing {{ push_failures_hard.total }} entities: <a href="{{ url('entity.cms_content_sync.sync_health.pushing') }}">details</a>.</div>
- {% endif %}
-
- {% if pull_failures_hard.total %}
- <div>There were errors pulling {{ pull_failures_hard.total }} entities: <a href="{{ url('entity.cms_content_sync.sync_health.pulling') }}">details</a>.</div>
- {% endif %}
-
- {% if error_log %}
- Last 10 Content Sync error messages:
- <ul>
- {% for msg in error_log %}
- <li>{{ msg|raw }}</li>
- {% endfor %}
- </ul>
- {% endif %}
- </div>
- {% endif %}
- {% if warning_log or site_log_disabled %}
- <div class="messages messages--warning">
- {% if site_log_disabled %}
- <div>The site log is disabled, so there's no report on log messages available.</div>
- {% endif %}
-
- {% if warning_log %}
- Last 10 Content Sync warning messages:
- <ul>
- {% for msg in warning_log %}
- <li>{{ msg|raw }}</li>
- {% endfor %}
- </ul>
- {% endif %}
- </div>
- {% endif %}
- {% 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 %}
- <div class="messages messages--status">
- There were no errors pushing or pulling entities on this site.
- </div>
- {% endif %}
-
-