If you enable the "recent comments" block on your site but there are no available comments to show yet, the block content is empty and therefore the block doesn't show at all.

I think this can be confusing to site administrators, who may try to enable the block while they are setting up their site (and have no comments yet), and then not understand why the block is not showing.

I know that I certainly found this confusing while working on #544360: D7UX dashboard module -- I was trying to drag this block into a dashboard region and was certain I had found a bug with that patch that meant the dashboard wasn't working correctly, but in fact, it was because the block had nothing to display in it. I don't even want to admit how much time I wasted trying to figure that out :)

Comments

David_Rothstein’s picture

Status: Active » Needs review
StatusFileSize
new527 bytes

Here is a simple patch.

ksenzee’s picture

I ran into the same thing. It is a bit of a WTF. I can't imagine when you'd want the recent comments block not to show up at all. The patch is RTBC, except that I don't want it to show up in the queue 2 seconds before code freeze.

dries’s picture

"None found" sounds a bit computer-ish -- as if a computer had to search for comments and it didn't find any. Can we change it to something like: "No comments yet." or "There are no comments yet."?

webchick’s picture

Status: Needs review » Needs work
David_Rothstein’s picture

Status: Needs work » Needs review
StatusFileSize
new555 bytes

We shouldn't really say "no comments yet" since it might not be true - there still might be comments on the site.

However, the standard text that is now used elsewhere in core (including elsewhere in the comment module) in these kinds of situations is "No ___ available", and I think that works here too.

ksenzee’s picture

Status: Needs review » Reviewed & tested by the community

"No comments available" seems fine.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.