Issue #2298039 followup by lauriii, sqndr: Remove all PNG fallbacks for SVG.
parent
36dd5afc42
commit
0aaa1c8098
|
@ -61,28 +61,28 @@ class SimpletestResultsForm extends FormBase {
|
||||||
// Initialize image mapping property.
|
// Initialize image mapping property.
|
||||||
$image_pass = array(
|
$image_pass = array(
|
||||||
'#theme' => 'image',
|
'#theme' => 'image',
|
||||||
'#uri' => 'core/misc/icons/73b355/check.png',
|
'#uri' => 'core/misc/icons/73b355/check.svg',
|
||||||
'#width' => 18,
|
'#width' => 18,
|
||||||
'#height' => 18,
|
'#height' => 18,
|
||||||
'#alt' => $this->t('Pass'),
|
'#alt' => $this->t('Pass'),
|
||||||
);
|
);
|
||||||
$image_fail = array(
|
$image_fail = array(
|
||||||
'#theme' => 'image',
|
'#theme' => 'image',
|
||||||
'#uri' => 'core/misc/icons/ea2800/error.png',
|
'#uri' => 'core/misc/icons/ea2800/error.svg',
|
||||||
'#width' => 18,
|
'#width' => 18,
|
||||||
'#height' => 18,
|
'#height' => 18,
|
||||||
'#alt' => $this->t('Fail'),
|
'#alt' => $this->t('Fail'),
|
||||||
);
|
);
|
||||||
$image_exception = array(
|
$image_exception = array(
|
||||||
'#theme' => 'image',
|
'#theme' => 'image',
|
||||||
'#uri' => 'core/misc/icons/e29700/warning.png',
|
'#uri' => 'core/misc/icons/e29700/warning.svg',
|
||||||
'#width' => 18,
|
'#width' => 18,
|
||||||
'#height' => 18,
|
'#height' => 18,
|
||||||
'#alt' => $this->t('Exception'),
|
'#alt' => $this->t('Exception'),
|
||||||
);
|
);
|
||||||
$image_debug = array(
|
$image_debug = array(
|
||||||
'#theme' => 'image',
|
'#theme' => 'image',
|
||||||
'#uri' => 'core/misc/icons/e29700/warning.png',
|
'#uri' => 'core/misc/icons/e29700/warning.svg',
|
||||||
'#width' => 18,
|
'#width' => 18,
|
||||||
'#height' => 18,
|
'#height' => 18,
|
||||||
'#alt' => $this->t('Debug'),
|
'#alt' => $this->t('Debug'),
|
||||||
|
|
|
@ -348,7 +348,7 @@ EOD;
|
||||||
$assertion['file'] = $this->asText($row->td[2]);
|
$assertion['file'] = $this->asText($row->td[2]);
|
||||||
$assertion['line'] = $this->asText($row->td[3]);
|
$assertion['line'] = $this->asText($row->td[3]);
|
||||||
$assertion['function'] = $this->asText($row->td[4]);
|
$assertion['function'] = $this->asText($row->td[4]);
|
||||||
$ok_url = file_create_url('core/misc/icons/73b355/check.png');
|
$ok_url = file_create_url('core/misc/icons/73b355/check.svg');
|
||||||
$assertion['status'] = ($row->td[5]->img['src'] == $ok_url) ? 'Pass' : 'Fail';
|
$assertion['status'] = ($row->td[5]->img['src'] == $ok_url) ? 'Pass' : 'Fail';
|
||||||
$results['assertions'][] = $assertion;
|
$results['assertions'][] = $assertion;
|
||||||
}
|
}
|
||||||
|
|
|
@ -320,25 +320,25 @@ function template_preprocess_update_project_status(&$variables) {
|
||||||
|
|
||||||
switch ($project['status']) {
|
switch ($project['status']) {
|
||||||
case UPDATE_CURRENT:
|
case UPDATE_CURRENT:
|
||||||
$uri = 'core/misc/icons/73b355/check.png';
|
$uri = 'core/misc/icons/73b355/check.svg';
|
||||||
$text = t('Ok');
|
$text = t('Ok');
|
||||||
break;
|
break;
|
||||||
case UPDATE_UNKNOWN:
|
case UPDATE_UNKNOWN:
|
||||||
case UPDATE_FETCH_PENDING:
|
case UPDATE_FETCH_PENDING:
|
||||||
case UPDATE_NOT_FETCHED:
|
case UPDATE_NOT_FETCHED:
|
||||||
$uri = 'core/misc/icons/e29700/warning.png';
|
$uri = 'core/misc/icons/e29700/warning.svg';
|
||||||
$text = t('Warning');
|
$text = t('Warning');
|
||||||
break;
|
break;
|
||||||
case UPDATE_NOT_SECURE:
|
case UPDATE_NOT_SECURE:
|
||||||
case UPDATE_REVOKED:
|
case UPDATE_REVOKED:
|
||||||
case UPDATE_NOT_SUPPORTED:
|
case UPDATE_NOT_SUPPORTED:
|
||||||
$uri = 'core/misc/icons/ea2800/error.png';
|
$uri = 'core/misc/icons/ea2800/error.svg';
|
||||||
$text = t('Error');
|
$text = t('Error');
|
||||||
break;
|
break;
|
||||||
case UPDATE_NOT_CHECKED:
|
case UPDATE_NOT_CHECKED:
|
||||||
case UPDATE_NOT_CURRENT:
|
case UPDATE_NOT_CURRENT:
|
||||||
default:
|
default:
|
||||||
$uri = 'core/misc/icons/e29700/warning.png';
|
$uri = 'core/misc/icons/e29700/warning.svg';
|
||||||
$text = t('Warning');
|
$text = t('Warning');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue