Ticket #4608 (new enhancement)

Opened 4 years ago

Last modified 2 years ago

Using Trac short notation for report and changeset

Reported by: peterA Assigned to: hasienda
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

Change History

10/22/11 01:12:47 changed by hasienda

  • keywords set to display format.

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

10/22/11 23:49:25 changed by hasienda

  • owner changed from ixokai to hasienda.

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.


Add/Change #4608 (Using Trac short notation for report and changeset)




Change Properties
Action