[PATCH] Improve ticket fields with tooltips
|Reported by:||Owned by:|
|Cc:||osimons, Thijs Triemstra, Ryan J Ollos|
Description (last modified by )
I've created a patch that allows a Trac admin to specify tooltips for arbitrary ticket fields in Trac:
This way the admin can explain a certain field in more detail (for example the difference between priority and severity) or provide information about the syntax used in that field.
The tooltips appear in the following places:
- the ticket box on the top of an existing ticket page (only on labels, not on values)
- in the ticket history for changes values
- the ticket input fields (on labels and input fields)
All labels get a help cursor if a tooltip is available.
Tooltips are specified in the
trac.ini under the new section
[ticket-hints]. Just assign the tooltip value to the name of the field. The user may also provide the same tooltip in multiple languages by appending the language code to the field name. Works for built-in fields as well as for custom fields (this patch is a generalization of #899). Example:
[ticket-hints] reporter = The reporter of this ticket owner = The owner of this ticket blockedby = Tickets preventing this one from closing. Accepts comma delimited ticket number (without #) complexity = The estimated complexity involved in fixing this ticked. complexity_de = Die geschätzte Komplexität zur Lösung des Tickets
I've decided to use the
trac.ini for localization as it would be too much overhead to create translation files for just some tooltips.
Change History (31)
comment:1 follow-up: 2 Changed 6 years ago by
|Owner:||set to Remy Blank|
|Priority:||normal → high|
comment:24 Changed 6 years ago by
|Cc:||Thijs Triemstra added|
|Summary:||Improve ticket fields with tooltips → [PATCH] Improve ticket fields with tooltips|