|
a/Allura/allura/lib/repository.py |
|
b/Allura/allura/lib/repository.py |
|
... |
|
... |
77 |
return links
|
77 |
return links
|
78 |
|
78 |
|
79 |
@h.exceptionless([], log)
|
79 |
@h.exceptionless([], log)
|
80 |
def sidebar_menu(self):
|
80 |
def sidebar_menu(self):
|
81 |
if not self.repo or self.repo.status != 'ready':
|
81 |
if not self.repo or self.repo.status != 'ready':
|
82 |
return [
|
82 |
return []
|
83 |
SitemapEntry(self.repo.status) ]
|
|
|
84 |
if self.default_branch_name:
|
83 |
if self.default_branch_name:
|
85 |
default_branch_url = (
|
84 |
default_branch_url = (
|
86 |
c.app.url
|
85 |
c.app.url
|
87 |
+ url(quote(self.default_branch_name + self.END_OF_REF_ESCAPE))
|
86 |
+ url(quote(self.default_branch_name + self.END_OF_REF_ESCAPE))
|
88 |
+ '/')
|
87 |
+ '/')
|