Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#29374 closed Cleanup/optimization (fixed)

Group the 'Available format strings' in the date template tag doc by category

Reported by: Pietro Bernardi Owned by: Brenton Cleeland
Component: Documentation Version:
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

'Available format strings' table is ordered alphabetically by format characters. It's IMHO inconvenient,
more times you search for format character of given element then for meaning of given format character.
So I reordered the table and added intermediate titles (see attached html file)
Pious soul that incorporates this snippet to doc is prayed to reformat intermediate titles (add appropriate classes and delete these ugly <b></b>).
The rest is copy/paste of original html page and needed no modifications.

Pietro

Change History (7)

comment:2 by Tim Graham, 6 years ago

Has patch: unset
Summary: built-in template tags - time - 'Available format strings' table for humansGroup the 'Available format strings' in the date template tag doc by category
Triage Stage: UnreviewedAccepted

The suggestion seems good -- PHP's table uses that approach.

You should submit your patch as a pull request.

comment:3 by Brenton Cleeland, 6 years ago

Owner: changed from nobody to Brenton Cleeland
Status: newassigned

comment:4 by Brenton Cleeland, 6 years ago

Has patch: set

PR open.

comment:5 by Tim Graham <timograham@…>, 6 years ago

Resolution: fixed
Status: assignedclosed

In 3cf45af:

Fixed #29374 -- Ordered date filter's format strings by category.

comment:6 by Tim Graham <timograham@…>, 6 years ago

In 3ff605b:

[2.1.x] Fixed #29374 -- Ordered date filter's format strings by category.

Backport of 3cf45af3630890ad85112f9ea8af869c8daef17b from master

comment:7 by Claude Paroz <claude@…>, 6 years ago

In 93bd860:

Refs #29374 -- Moved misplaced line in date format docs table

comment:8 by Claude Paroz <claude@…>, 6 years ago

In d46bf119:

[2.1.x] Refs #29374 -- Moved misplaced line in date format docs table

Backport of 93bd860710d9914cc077ee362d5f3647489ce5a5 from master.

Note: See TracTickets for help on using tickets.
Back to Top