プロジェクト

全般

プロフィール

Vote #79988

未完了

Macro child_pages should support reverse order

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Text formatting_26
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
26
version_id:
0
issue_org_id:
31215
author_id:
68130
assigned_to_id:
0
comments:
3
status_id:
1
tracker_id:
2
plus1:
1
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

This is more appropriate for some contexts, for example monthly reports which you want sorted chronologically in reversed order

Example:

{{child_pages(reverse, depth=2) }}


journals

+1

This is very helpful when storing documentation/protocols in a wiki. Atm one has to scroll down a lot when there are lots of entries. We tried Documents, but there is no changelog.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
First: I'm no ruby developer.

I tried to extend the child_pages macro with the suggested reverse argument.

I would be glad if someone could:

* check if the code is sane
* test this in a development setup

Patch is attached. If I can do something else please point me in the right direction.
--------------------------------------------------------------------------------

Admin Redmine さんがほぼ2年前に更新

  • カテゴリText formatting_26 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0