Issue #2207767 by temaruk, Coornail, rteijeiro, alexrayu, LewisNyman: Replace watchdog icons with Libricons.

8.0.x
webchick 2014-03-25 13:32:13 -07:00
parent 29bfb33e7c
commit fd4e22077f
6 changed files with 10 additions and 9 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 780 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 375 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 318 B

View File

@ -51,28 +51,28 @@ class SimpletestResultsForm extends FormBase {
// Initialize image mapping property.
$image_pass = array(
'#theme' => 'image',
'#uri' => 'core/misc/watchdog-ok.png',
'#uri' => 'core/misc/icons/73b355/check.png',
'#width' => 18,
'#height' => 18,
'#alt' => $this->t('Pass'),
);
$image_fail = array(
'#theme' => 'image',
'#uri' => 'core/misc/watchdog-error.png',
'#uri' => 'core/misc/icons/ea2800/error.png',
'#width' => 18,
'#height' => 18,
'#alt' => $this->t('Fail'),
);
$image_exception = array(
'#theme' => 'image',
'#uri' => 'core/misc/watchdog-warning.png',
'#uri' => 'core/misc/icons/e29700/warning.png',
'#width' => 18,
'#height' => 18,
'#alt' => $this->t('Exception'),
);
$image_debug = array(
'#theme' => 'image',
'#uri' => 'core/misc/watchdog-warning.png',
'#uri' => 'core/misc/icons/e29700/warning.png',
'#width' => 18,
'#height' => 18,
'#alt' => $this->t('Debug'),

View File

@ -7,6 +7,7 @@
namespace Drupal\simpletest\Tests;
use Drupal\Core\Database\Driver\pgsql\Select;
use Drupal\simpletest\WebTestBase;
class SimpleTestTest extends WebTestBase {
@ -298,7 +299,7 @@ class SimpleTestTest extends WebTestBase {
$assertion['file'] = $this->asText($row->td[2]);
$assertion['line'] = $this->asText($row->td[3]);
$assertion['function'] = $this->asText($row->td[4]);
$ok_url = file_create_url('core/misc/watchdog-ok.png');
$ok_url = file_create_url('core/misc/icons/73b355/check.png');
$assertion['status'] = ($row->td[5]->img['src'] == $ok_url) ? 'Pass' : 'Fail';
$results['assertions'][] = $assertion;
}

View File

@ -45,28 +45,28 @@ function theme_update_report($variables) {
switch ($project['status']) {
case UPDATE_CURRENT:
$class = 'ok';
$uri = 'core/misc/watchdog-ok.png';
$uri = 'core/misc/icons/73b355/check.png';
$text = t('ok');
break;
case UPDATE_UNKNOWN:
case UPDATE_FETCH_PENDING:
case UPDATE_NOT_FETCHED:
$class = 'unknown';
$uri = 'core/misc/watchdog-warning.png';
$uri = 'core/misc/icons/e29700/warning.png';
$text = t('warning');
break;
case UPDATE_NOT_SECURE:
case UPDATE_REVOKED:
case UPDATE_NOT_SUPPORTED:
$class = 'error';
$uri = 'core/misc/watchdog-error.png';
$uri = 'core/misc/icons/ea2800/error.png';
$text = t('error');
break;
case UPDATE_NOT_CHECKED:
case UPDATE_NOT_CURRENT:
default:
$class = 'warning';
$uri = 'core/misc/watchdog-warning.png';
$uri = 'core/misc/icons/e29700/warning.png';
$text = t('warning');
break;
}