Download plugins/ExampleVisualization/templates/simpleTable.twig from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 840 Bytes
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/plugins/ExampleVisualization/templates/simpleTable.twig
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/plugins/ExampleVisualization/templates/simpleTable.twig
-
curl -L -o simpleTable.twig https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/plugins/ExampleVisualization/templates/simpleTable.twig
840 Bytes
| <div> | |
| <h2>{{ vizTitle }}</h2> | |
| <table class="dataTable"> | |
| <thead> | |
| <tr> | |
| {% for name in properties.columns_to_display %} | |
| {% if name in properties.translations|keys %} | |
| <th>{{ properties.translations[name]|translate }}</th> | |
| {% else %} | |
| <th>{{ name }}</th> | |
| {% endif %} | |
| {% endfor %} | |
| </tr> | |
| </thead> | |
| <tbody> | |
| {% for tableRow in dataTable.getRows %} | |
| <tr> | |
| {% for column in properties.columns_to_display %} | |
| <td>{{ tableRow.getColumn(column)|default('-')|truncate(50)|rawSafeDecoded }}</td> | |
| {% endfor %} | |
| </tr> | |
| {% endfor %} | |
| </tbody> | |
| </table> | |
| </div> |