Download plugins/Installation/templates/getSystemCheckWidget.twig from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 2.47 kB
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/plugins/Installation/templates/getSystemCheckWidget.twig
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/plugins/Installation/templates/getSystemCheckWidget.twig
-
curl -L -o getSystemCheckWidget.twig https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/plugins/Installation/templates/getSystemCheckWidget.twig
2.47 kB
| <div class="widgetBody system-check" vue-directive="CoreHome.Tooltips" vue-directive-value="{"show": {"delay": 200, "duration": 100}}"> | |
| {% if not numErrors and not numWarnings %} | |
| <p class="system-success"><span class="icon-ok"></span> {{ 'Installation_SystemCheckNoErrorsOrWarnings'|translate }}</p> | |
| {% endif %} | |
| {% if numErrors %} | |
| <ul> | |
| {% for thisResult in errors %} | |
| {% set checkItemMessages = '' %} | |
| {% if thisResult.getLongErrorMessage is empty and thisResult.getItems()|length > 1 %} | |
| {% for checkItem in thisResult.getItems() %} | |
| {% if checkItem.getStatus is same as('warning') %} | |
| {% set checkItemMessages = checkItemMessages ~ checkItem.getComment() ~ "\n" %} | |
| {% endif %} | |
| {% endfor %} | |
| {% endif %} | |
| <li title="{{ checkItemMessages|default(thisResult.getLongErrorMessage)|default(thisResult.getItems()[0].getComment())|preg_replace('/<br.*?>/', "\n")|striptags }}" class="system-check-widget-error"><span class="icon-error"></span> {{ thisResult.getLabel }}</li> | |
| {% endfor %} | |
| </ul> | |
| {% endif %} | |
| {% if numWarnings %} | |
| <ul> | |
| {% for thisResult in warnings %} | |
| {% set checkItemMessages = '' %} | |
| {% if thisResult.getLongErrorMessage is empty and thisResult.getItems()|length > 1 %} | |
| {% for checkItem in thisResult.getItems() %} | |
| {% if checkItem.getStatus is same as('warning') %} | |
| {% set checkItemMessages = checkItemMessages ~ checkItem.getComment() ~ "\n" %} | |
| {% endif %} | |
| {% endfor %} | |
| {% endif %} | |
| <li title="{{ checkItemMessages|default(thisResult.getLongErrorMessage)|default(thisResult.getItems()[0].getComment())|preg_replace('/<br.*?>/', "\n")|striptags }}" class="system-check-widget-warning"><span class="icon-warning"></span> {{ thisResult.getLabel }}</li> | |
| {% endfor %} | |
| </ul> | |
| {% endif %} | |
| {% if numErrors or numWarnings %} | |
| <p> | |
| <br /> | |
| <a href="{{ linkTo({'module': 'Installation', 'action': 'systemCheckPage'}) }}" | |
| >{{ 'Installation_SystemCheckViewFullSystemCheck'|translate }}</a> | |
| </p> | |
| {% endif %} | |
| </div> |