Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 300827

Empty content block message in overview is missing a space

$
0
0

Problem/Motivation

The empty message of the content block table is missing a space in between the two sentences (for users that have access to create a block). It reads:

There are no content blocks available.Add a content block.

The Drupal content block overview page with the empty message as noted above.

Steps to reproduce

Visit the content block overview on a site with no content blocks with a user that is allowed to create blocks.

Proposed resolution

This is not super trivial because the two sentences come from two different places. The first is from the view configuration, i.e. the display.default.display_options.empty.area_text_custom.content key in views.view.block_content.yml. The second one comes from \Drupal\block_content\Plugin\views\area\ListingEmpty::render(). They are just rendered right after another, so there is no space in between. But as it stands now each could be rendered without the other, so there is no natural place to put the space.

One way to fix this would be to move the first sentence into \Drupal\block_content\Plugin\views\area\ListingEmpty::render() and remove the custom text area before it.

Remaining tasks

User interface changes

The missing space as described above is rectified.

Introduced terminology

-

API changes

-

Data model changes

-

Release notes snippet

-


Viewing all articles
Browse latest Browse all 300827

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>