Skip to content

Commit

Permalink
Merge pull request #343 from AgID/fix/modify_plugin_sitesmanager_twig
Browse files Browse the repository at this point in the history
fix Data tabs Site Manager template
  • Loading branch information
pdavide authored Jan 9, 2025
2 parents 0d89bb3 + 20ff9d4 commit 8dfd2af
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
8 changes: 8 additions & 0 deletions templates/plugins/SitesManager/_siteWithoutDataTabs.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<div class="row no-data-tabs-main-div">
<div id="tracking-code" class="col s12">
<p>{{ 'CoreAdminHome_JSTracking_CodeNoteBeforeClosingHead'|translate("&lt;/head&gt;")|raw }}</p>
<div>
<pre matomo-copy-to-clipboard>{{ jsTag|raw }}</pre>
</div>
</div>
</div>
34 changes: 34 additions & 0 deletions templates/plugins/SitesManager/siteWithoutData.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{% extends "dashboard.twig" %}

{% block notification %}
{% include "@CoreHome/_notifications.twig" %}
{% endblock %}

{% block topcontrols %}
{% include "@CoreHome/_siteSelectHeader.twig" %}
{% endblock %}

{% set bodyId = 'site-without-data' %}

{% block content %}

<div class="site-without-data">
<h1 id="start-tracking-data-header">
{{ 'SitesManager_SiteWithoutDataStartTrackingDataHeader'|translate }}
</h1>
<p>{{ 'SitesManager_SiteWithoutDataStartTrackingDataDescriptionLine2'|translate('<a rel="noreferrer noopener" class="ignoreSitesWithoutData" href="' ~ linkTo({module: 'SitesManager', action: 'ignoreNoDataMessage'}) ~'">', '</a>')|raw }}</p>
<p>&nbsp;</p>

<div piwik-widget-loader='{"module":"SitesManager","action":"siteWithoutDataTabs"}' loading-message="{{ 'SitesManager_DetectingYourSite'|translate|e('html_attr') }}..."></div>

{% set afterIntroEventContent %}{{ postEvent('Template.siteWithoutData.afterIntro') }}{% endset %}
<div class="no-data-footer row">
{% if afterIntroEventContent %}
<hr/>
{% endif %}
{{ afterIntroEventContent }}
</div>
{{ postEvent('Template.siteWithoutData.afterTrackingHelp') }}
</div>

{% endblock %}

0 comments on commit 8dfd2af

Please sign in to comment.