File: testAllSizes.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 (55 lines) | stat: -rw-r--r-- 2,538 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{% extends 'dashboard.twig' %}

{% block topcontrols %}
    {% include '@CoreHome/_periodSelect.twig' %}
{% endblock %}

{% block content %}
    {% set showSitesSelection=true %}

    <div>
        <h2>{{ 'ImageGraph_ImageGraph'|translate }} ::: {{ siteName }}</h2>

        <div class="entityContainer" style="width:100%;">
            <div class="entityAddContainer">
                <table class="dataTable entityTable">
                    <thead>
                    </thead>
                    <tbody>
                    <tr class="first">
                        <th style="white-space:normal;">Category</th>
                        <th style="white-space:normal;">Name</th>

                        {% for type in graphTypes %}
                            <th style="white-space:normal;">{{ type }}</th>
                        {% endfor %}
                    </tr>
                    {% for report in availableReports %}
                        {% if report.imageGraphUrl is defined %}
                            <tr>
                                <td>{{ report.category }}</td>
                                <td>{{ report.name }}</td>
                                {% for type in graphTypes %}
                                    <td>
                                        <h2>Graph {{ type }} for all supported sizes</h2>
                                        {% for sizes in graphSizes %}
                                            <p>{{ sizes.0 }}
                                                x {{ sizes.1 }} {% if sizes.2 is defined %} (scaled down to {{ sizes.3 }} x {{ sizes.4 }}){% endif %}</p>
                                            <img src="{{ report.imageGraphUrl }}&graphType={{ type }}&width={{ sizes.0 }}&height={{ sizes.1 }}{% if sizes.2 is
                                            defined %}&fontSize={{ sizes.2 }}{% endif %}"
                                                 {% if sizes.3 is defined %}width={{ sizes.3 }}{% endif %}
                                                 {% if sizes.4 is defined %}height={{ sizes.4 }}{% endif %}
                                                    />
                                        {% endfor %}
                                    </td>
                                {% endfor %}
                            </tr>
                        {% endif %}
                    {% endfor %}
                    </tbody>
                </table>
            </div>
            <a id="bottom"></a>
        </div>
    </div>
{% endblock %}