Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#12036 closed enhancement (fixed)

Override main navigation link name

Reported by: Shawn Baker Owned by: roadrunner
Priority: normal Component: HudsonTracPlugin
Severity: normal Keywords:
Cc: Trac Release:

Description

The HudsonTrac plugin currently uses 'Builds' in the main navigation bar for display.

It would be nice if the user could customize this for their system.

Attachments (1)

HudsonTracPatch_Ticket12036_1.patch (503 bytes) - added by Shawn Baker 6 years ago.
Working patch for the enhancement, uses 'mainnav_label' in the trac.ini for the main navigation display name.

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by Shawn Baker

Working patch for the enhancement, uses 'mainnav_label' in the trac.ini for the main navigation display name.

comment:1 Changed 6 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

In 14251:

Return an instance of the Element class from get_navigation_items to support modifying the item through Trac's [mainnav] section. Fixes #12036.

comment:2 Changed 6 years ago by Ryan J Ollos

In 14252:

Fixed error in [14251]. Remove target attribute when display_in_new_tab is False. Refs #12036.

comment:3 Changed 6 years ago by Ryan J Ollos

The navigation item can be overridden now by configuring the [mainnav] section of trac.ini (see TracNavigation for details). Here is the specific recipe:

[mainnav]
builds.label = Continuous Integration

The [hudson] display_in_new_tab setting will not be effective once the navigation item is renamed, however that's a defect that I intend to fix. See trac:#11819.

print statement from [14252] removed in [14253]. Sorry for the sloppiness.

Last edited 6 years ago by Ryan J Ollos (previous) (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain roadrunner.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.