diff --git a/src/Plugin/views/field/JobItemState.php b/src/Plugin/views/field/JobItemState.php index 76d9450..3fd1eff 100644 --- a/src/Plugin/views/field/JobItemState.php +++ b/src/Plugin/views/field/JobItemState.php @@ -26,12 +26,12 @@ class JobItemState extends NumericField { switch ($value) { case JobItemInterface::STATE_ACTIVE: $label = t('In progress'); - $icon = drupal_get_path('module', 'tmgmt') . '/icons/ready.svg'; + $icon = drupal_get_path('module', 'tmgmt') . '/icons/hourglass.svg'; break; case JobItemInterface::STATE_REVIEW: $label = t('Needs review'); - $icon = drupal_get_path('module', 'tmgmt') . '/icons/hourglass.svg'; + $icon = drupal_get_path('module', 'tmgmt') . '/icons/ready.svg'; break; case JobItemInterface::STATE_ACCEPTED: diff --git a/tmgmt.module b/tmgmt.module index aca2412..fbc0078 100644 --- a/tmgmt.module +++ b/tmgmt.module @@ -915,8 +915,8 @@ function tmgmt_color_item_legend() { } $legends_left = array(); - $legends_left[] = array('legend' => t('In progress'), 'icon' => drupal_get_path('module', 'tmgmt') . '/icons/ready.svg'); - $legends_left[] = array('legend' => t('Needs review'), 'icon' => drupal_get_path('module', 'tmgmt') . '/icons/hourglass.svg'); + $legends_left[] = array('legend' => t('In progress'), 'icon' => drupal_get_path('module', 'tmgmt') . '/icons/hourglass.svg'); + $legends_left[] = array('legend' => t('Needs review'), 'icon' => drupal_get_path('module', 'tmgmt') . '/icons/ready.svg'); $legends_left[] = array('legend' => t('Accepted'), 'icon' => 'core/misc/icons/73b355/check.svg'); $legends_left[] = array('legend' => t('Aborted'), 'icon' => drupal_get_path('module', 'tmgmt') . '/icons/ex-red.svg'); diff --git a/translators/tmgmt_file/src/Tests/FileTranslatorTest.php b/translators/tmgmt_file/src/Tests/FileTranslatorTest.php index 5ec2e44..b41d107 100644 --- a/translators/tmgmt_file/src/Tests/FileTranslatorTest.php +++ b/translators/tmgmt_file/src/Tests/FileTranslatorTest.php @@ -480,7 +480,7 @@ class FileTranslatorTest extends TMGMTTestBase { $this->drupalPostForm($job->urlInfo(), $edit, t('Import')); // Make sure the translations have been imported correctly. - $this->assertNoText(t('In progress')); + $this->assertNoRaw('title="In progress"'); // @todo: Enable this assertion once new releases for views and entity // module are out. //$this->assertText(t('Needs review')); @@ -507,7 +507,7 @@ class FileTranslatorTest extends TMGMTTestBase { // module are out. //$this->assertText(t('Accepted')); $this->assertText(t('Finished')); - $this->assertNoText(t('Needs review')); + $this->assertNoRaw('title="Needs review"'); } /**