Skip to content

Commit

Permalink
Fix display of no resources in respective sidebar selects.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimisgold committed Mar 11, 2021
1 parent 578dd20 commit e556729
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion application/asset/css/style.css

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions application/asset/sass/_screen.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1415,6 +1415,7 @@ div[role="main"] {
left: 0;
width: 100%;
opacity: .08;
content: fa-content($fa-var-cubes);
}

p {
Expand Down Expand Up @@ -1470,6 +1471,10 @@ td .o-icon-user-inactive {
content: fa-content($fa-var-laptop);
}

.sidebar .no-resources {
display: block;
}

/* @group ----- Batch Update ----- */

#batch-form {
Expand Down
2 changes: 1 addition & 1 deletion application/view/omeka/admin/item-set/sidebar-select.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $itemSetsFound = count($itemSets) > 0;
<?php endif; ?>
</div>

<div class="resource-list">
<div class="item-sets resource-list">
<?php if ($itemSetsFound): ?>
<?php
foreach ($itemSets as $itemSet): ?>
Expand Down
2 changes: 1 addition & 1 deletion application/view/omeka/admin/item/sidebar-select.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ $expanded = $resourceClassId || $itemSetId || $id;
<?php if ($itemsFound): ?>
<button type="button" class="quick-select-toggle"><?php echo $translate('Quick add'); ?></button>

<div class="resource-list">
<div class="items resource-list">
<?php foreach ($items as $item):?>
<div class="resource item" data-resource-values="<?php echo $escape(json_encode($item->valueRepresentation())); ?>">
<div class="select-resource-checkbox-wrapper">
Expand Down
2 changes: 1 addition & 1 deletion application/view/omeka/admin/media/sidebar-select.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $mediaFound = count($media) > 0;
<?php endif; ?>
</div>

<div class="resource-list">
<div class="media resource-list">
<?php if ($mediaFound): ?>
<?php foreach ($media as $m):?>
<div class="resource item-set">
Expand Down

0 comments on commit e556729

Please sign in to comment.