Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/API/templates/glossary.twig')
-rw-r--r--plugins/API/templates/glossary.twig62
1 files changed, 32 insertions, 30 deletions
diff --git a/plugins/API/templates/glossary.twig b/plugins/API/templates/glossary.twig
index fc593742c9..d7fd2d1de9 100644
--- a/plugins/API/templates/glossary.twig
+++ b/plugins/API/templates/glossary.twig
@@ -3,41 +3,43 @@
{% set title %}{{ 'API_Glossary'|translate }}{% endset %}
{% block content %}
- <h2 piwik-enriched-headline>{{ title }}</h2>
+ <div piwik-content-intro>
- {{ 'API_LearnAboutCommonlyUsedTerms'|translate(
- '<a href="#metrics">'~ 'General_Metrics'|translate ~ '</a>',
- '<a href="#reports">' ~ 'General_Reports'|translate ~ '</a>')|raw
- }}
+ <h2>{{ title|e('html_attr') }}</h2>
+ <p>
+ {{ 'API_LearnAboutCommonlyUsedTerms'|translate(
+ '<a href="#metrics">'~ 'General_Metrics'|translate ~ '</a>',
+ '<a href="#reports">' ~ 'General_Reports'|translate ~ '</a>')|raw
+ }}
- <!-- {{ metrics|length }} metrics, {{ reports|length }} reports -->
+ <!-- {{ metrics|length }} metrics, {{ reports|length }} reports -->
+ </p>
+ </div>
<a id="metrics"></a>
- <h2>{{ 'General_Metrics'|translate }}</h2>
- <table>
- {% for metric in metrics %}
- <tr>
- <td>
- <h3>{{ metric.name }}</h3>
- </td>
- <td>
- {{ metric.documentation|raw }}
-
- <br/><span style="color: #bbb;">{{ metric.id }} (API)</span>
- </td>
- </tr>
- {% endfor %}
- </table>
+ <div piwik-content-block content-title="{{ 'General_Metrics'|translate|e('html_attr') }}">
+ <table>
+ {% for metric in metrics %}
+ <tr>
+ <td>
+ <h3>{{ metric.name }}</h3>
+ </td>
+ <td>
+ {{ metric.documentation|raw }}
+
+ <br/><span style="color: #bbb;">{{ metric.id }} (API)</span>
+ </td>
+ </tr>
+ {% endfor %}
+ </table>
+ </div>
<a id="reports"></a>
- <h2>{{ 'General_Reports'|translate }}</h2>
-
-
- {% for report in reports %}
- <h3>{{ report.name }}</h3>
- <p>{{ report.documentation|raw }}</p>
- {% endfor %}
-
-
+ <div piwik-content-block content-title="{{ 'General_Reports'|translate|e('html_attr') }}">
+ {% for report in reports %}
+ <h3>{{ report.name }}</h3>
+ <p>{{ report.documentation|raw }}</p>
+ {% endfor %}
+ </div>
{% endblock %} \ No newline at end of file