Project

General

Profile

Actions

Feature #43632

open

Show a message when recent_pages macro does not return any page

Added by Marius BĂLTEANU about 2 months ago. Updated 15 days ago.

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

Files


Related issues

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

Updated by Florian Walchshofer about 1 month ago

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." 
Actions #2

Updated by Marius BĂLTEANU about 1 month ago

  • Target version set to 6.1.2
Actions #3

Updated by Marius BĂLTEANU 23 days ago

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

Updated by Marius BĂLTEANU 21 days ago

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?

Actions #5

Updated by Marius BĂLTEANU 15 days ago

  • 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.

Actions

Also available in: Atom PDF