Skip to content

Commit

Permalink
Fixes misalignment of import dashboard (#4270)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-m authored Sep 4, 2024
1 parent f0fad05 commit c31334e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
8 changes: 3 additions & 5 deletions modules/datastore/src/Form/DashboardForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

/**
* Datastore Import Dashboard form.
*
* @package Drupal\datastore
*/
class DashboardForm extends FormBase {
use StringTranslationTrait;
Expand Down Expand Up @@ -414,7 +412,7 @@ protected function buildRevisionRow(array $rev, int $resourceCount, string $harv
// here.
$moderation_class = $rev['moderation_state'];
if ($moderation_class == 'hidden') {
$moderation_class = 'registered';
$moderation_class = 'published-hidden';
}
return [
[
Expand All @@ -428,12 +426,12 @@ protected function buildRevisionRow(array $rev, int $resourceCount, string $harv
],
[
'rowspan' => $resourceCount,
'class' => $rev['moderation_state'],
'class' => $moderation_class,
'data' => [
'#theme' => 'datastore_dashboard_revision_cell',
'#revision_id' => $rev['revision_id'],
'#modified' => $this->dateFormatter->format(strtotime($rev['modified_date_dkan']), 'short'),
'#moderation_state' => $moderation_class,
'#moderation_state' => $rev['moderation_state'],
],
],
[
Expand Down
9 changes: 9 additions & 0 deletions modules/harvest/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ table.dashboard-datasets td.done
background-color: #f3faef;
}

/**
* Hidden.
*/
table.dashboard-datasets td.published-hidden
{
color: #325e1c;
background-color: #edf3e8;
}

/**
* Waiting.
*/
Expand Down

0 comments on commit c31334e

Please sign in to comment.