Modify

Opened 15 years ago

Last modified 7 years ago

#4608 new enhancement

Using Trac short notation for report and changeset

Reported by: peterA Owned by:
Priority: normal Component: BreadCrumbsNavPlugin
Severity: normal Keywords: display format
Cc: Trac Release: 0.11

Description

It would be nice to shorten the breadcrumbs display using Trac syntax for report and changeset. Also only shows just the filename instead of full browser path. Here's a quick patch.

breadcrumbs.py:

148              if realm == "ticket": 
149                  name = "#" + resource 
150              elif realm == "report":           # report:7 is {7}
151                  name = "{" + resource + "}" 
152              elif realm == "changeset":        # changeset:10 is [10]
153                  name = "[" + resource + "]" 
154              elif realm == "browser":          # browser:/trunk/foo.py is foo.py
156                  name = resource.split('/').pop() 
157              elif realm != "wiki": 
158                  name = "%s:%s" % (realm, name) 

Attachments (0)

Change History (3)

comment:1 Changed 13 years ago by Steffen Hoffmann

Keywords: display format added

Thanks for the suggestion, anyway we should do better with get_resource_description and argument 'format=compact'.

comment:2 Changed 13 years ago by Steffen Hoffmann

Owner: changed from Stephen Hansen to Steffen Hoffmann

I'd like to keep this just as an reminder, but rather resolve it by implementing code referred to in #7790 in a backwards-compatible way, at least down to Trac 0.11.

comment:3 Changed 7 years ago by Ryan J Ollos

Owner: Steffen Hoffmann deleted

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


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

 
Note: See TracTickets for help on using tickets.