File: renderSidebar.twig

package info (click to toggle)
matomo 5.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 95,068 kB
  • sloc: php: 289,425; xml: 127,249; javascript: 112,130; python: 202; sh: 178; makefile: 20; sql: 10
file content (30 lines) | stat: -rw-r--r-- 1,132 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<div> <!-- Wrapper is needed that the html can be jQueryfied -->

    <!-- This div is removed by JS and the content is put in the location div -->
    <div class="overlayLocation">
        <strong>{{ 'Overlay_Location'|translate }}:</strong>
		<span data-normalized-url="{{ normalizedUrl }}" data-label="{{ label }}">
			{{ location }}
		</span>
    </div>

    <div class="overlaySegment">
        <strong>{{ 'General_Segment'|translate }}:</strong>
        <span>{{ segmentDescription }}</span>
    </div>

    {% if data|length > 0 %}
        <h2 class="overlayMainMetrics">{{ 'General_MainMetrics'|translate }}</h2>
        <ul class="overlayMetrics">
        {% for metric in data %}
            <li class="overlayMetric">
                <span class="overlayMetricValue">{{ metric.value|raw }}</span> {{ metric.name }}
            </li>
        {% endfor %}
        </ul>
        <input type="hidden" value="{{ segment }}" id="segment" />
    {% else %}
        <!-- note: the class overlayNoData is used in Piwik_Overlay.js -->
        <div class="overlayNoData">{{ 'Overlay_NoData'|translate }}</div>
    {% endif %}
</div>