Project

General

Profile

Actions

Feature #43632

open

Show a message when recent_pages macro does not return any page

Feature #43632: Show a message when recent_pages macro does not return any page

Added by Marius BĂLTEANU 11 months ago. Updated 9 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Resolution:

Files


Related issues 1 (0 open — 1 closed)

Related to Redmine - Feature #38501: recent_pages macro that displays a list of recently updated Wiki pagesClosedMarius BĂLTEANUActions

Updated by Florian Walchshofer 11 months ago Actions #1

a patch to show a message, if no pages where found
with test an localization

return l(:label_no_recent_wiki_pages, days: days_to_list) if pages.empty?
label_no_recent_wiki_pages: "No wiki pages updated within the last %{days} days." 

Updated by Marius BĂLTEANU 11 months ago Actions #2

  • Target version set to 6.1.2

Updated by Marius BĂLTEANU 10 months ago Actions #3

  • Related to Feature #38501: recent_pages macro that displays a list of recently updated Wiki pages added

Updated by Marius BĂLTEANU 10 months ago Actions #4

Existing {{child_pages}} macro does not show any message where the are no child pages, here is a test on the current trunk:

If a add the text just as plain text, it looks quite akward:

I think we need to improve the UI for this, but I'm not sure which is the best option. Any ideeas?

Updated by Marius BĂLTEANU 10 months ago Actions #5

  • Target version changed from 6.1.2 to Candidate for next minor release

I'm assigning this for next versions until we get some feedback regarding the implementation.

Updated by Florian Walchshofer 9 months ago Actions #6

Added a new patch: The 'No wiki pages updateted' message is now wrapped in a ul/li structure to ensure consistent styling with the standard results list.

Actions

Also available in: PDF Atom