1<div class="widgetBody system-check"> 2 {% if not numErrors and not numWarnings %} 3 <p class="system-success"><span class="icon-ok"></span> {{ 'Installation_SystemCheckNoErrorsOrWarnings'|translate }}</p> 4 {% endif %} 5 6 {% if numErrors %} 7 <ul> 8 {% for error in errors %} 9 <li title="{{ error.getLongErrorMessage|default(error.getItems()[0].getComment())|e('html_attr') }}" class="system-check-widget-error"><span class="icon-error"></span> {{ error.getLabel }}</li> 10 {% endfor %} 11 </ul> 12 {% endif %} 13 14 {% if numWarnings %} 15 <ul> 16 {% for warning in warnings %} 17 <li title="{{ warning.getLongErrorMessage|default(warning.getItems()[0].getComment())|e('html_attr') }}" class="system-check-widget-warning"><span class="icon-warning"></span> {{ warning.getLabel }}</li> 18 {% endfor %} 19 </ul> 20 {% endif %} 21 22 {% if numErrors or numWarnings %} 23 <p> 24 <br /> 25 <a href="{{ linkTo({'module': 'Installation', 'action': 'systemCheckPage'}) }}" 26 >{{ 'Installation_SystemCheckViewFullSystemCheck'|translate }}</a> 27 </p> 28 {% endif %} 29 30 <script> 31 jQuery(function () { 32 $('.widgetBody.system-check').tooltip({ 33 track: true, 34 content: function() { 35 var $this = $(this); 36 if ($this.attr('piwik-field') === '') { 37 // do not show it for form fields 38 return ''; 39 } 40 41 var title = $(this).attr('title'); 42 return piwikHelper.escape(title.replace(/\n/g, '<br />')); 43 }, 44 show: {delay: 200, duration: 100}, 45 hide: false 46 }); 47 }); 48 </script> 49</div>