Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

#3708 closed enhancement (fixed)

def get_path_links() build links with several 'root' elements

Reported by: mraddatz@… Owned by: Christian Boos
Priority: normal Milestone: 0.10
Component: version control/browser Version: 0.9.6
Severity: trivial Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Has the path one or more slash behind a slash the browser path link will contain more 'root' elements.

Example:

Solution:

In

trac/versioncontrol/web_ui/util.py

replace

def get_path_links(href, path, rev):
...
for part in parts:
        path = path + part + '/'
...

with

def get_path_links(href, path, rev):
...
for part in parts:
        if not part and path != '/':
            continue
        path = path + part + '/'
...

Attachments (0)

Change History (4)

comment:1 by anonymous, 16 years ago

Type: defectenhancement

comment:2 by anonymous, 16 years ago

Component: generalbrowser

comment:3 by Christian Boos, 16 years ago

Milestone: 0.10
Owner: changed from Jonas Borgström to Christian Boos
Severity: normaltrivial

Good catch.

comment:4 by Christian Boos, 16 years ago

Resolution: fixed
Status: newclosed

Fixed by r3719.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos 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.