|
a/Allura/allura/controllers/root.py |
|
b/Allura/allura/controllers/root.py |
|
... |
|
... |
88 |
neighborhoods = M.Neighborhood.query.find().sort('name')
|
88 |
neighborhoods = M.Neighborhood.query.find().sort('name')
|
89 |
psort = [ (n, [ p for p in projects if p.neighborhood_id==n._id ])
|
89 |
psort = [ (n, [ p for p in projects if p.neighborhood_id==n._id ])
|
90 |
for n in neighborhoods ]
|
90 |
for n in neighborhoods ]
|
91 |
categories = M.ProjectCategory.query.find({'parent_id':None}).sort('name').all()
|
91 |
categories = M.ProjectCategory.query.find({'parent_id':None}).sort('name').all()
|
92 |
c.custom_sidebar_menu = [
|
92 |
c.custom_sidebar_menu = [
|
93 |
SitemapEntry(cat.label, '/browse/'+cat.name, className='nav_child') for cat in categories
|
93 |
SitemapEntry(cat.label, '/browse/'+cat.name) for cat in categories
|
94 |
]
|
94 |
]
|
95 |
return dict(projects=psort,title="All Projects",text=None)
|
95 |
return dict(projects=psort,title="All Projects",text=None)
|
96 |
|
96 |
|
97 |
class SitemapIndexController(object):
|
97 |
class SitemapIndexController(object):
|
98 |
projects_per_page = 1000
|
98 |
projects_per_page = 1000
|