Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#8214 closed enhancement (fixed)

pass the environments into the TRAC_ENV_INDEX_TEMPLATE

Reported by: Jeff Hammel <jhammel@…> Owned by: Jeff Hammel <jhammel@…>
Priority: normal Milestone: 0.11.5
Component: web frontend Version: 0.11
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

In source:trunk/trac/web/main.py, the Trac environments are opened and data is extracted from them. However, the environment itself is not passed into the template, which gives limited options for customizing the TRAC_ENV_INDEX_TEMPLATE. This can easily be fixed by replacing source:trunk/trac/web/main.py#L571

                proj = {
                    'name': env.project_name,
                    'description': env.project_description,
                    'href': href(env_name)
                }

with

                proj = {
                    'env': env,
                    'name': env.project_name,
                    'description': env.project_description,
                    'href': href(env_name)
                }

Attachments (0)

Change History (2)

comment:1 by Remy Blank, 15 years ago

Milestone: 0.11.5
Resolution: fixed
Status: newclosed

Sure, why not? Applied in [8126] for 0.11-stable and [8127] for trunk. Thanks!

comment:2 by Remy Blank, 15 years ago

Owner: set to Jeff Hammel <jhammel@…>

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jeff Hammel <jhammel@…>.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jeff Hammel <jhammel@…> to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.