|
a/Allura/allura/controllers/project.py |
|
b/Allura/allura/controllers/project.py |
|
... |
|
... |
278 |
|
278 |
|
279 |
@expose()
|
279 |
@expose()
|
280 |
@with_trailing_slash
|
280 |
@with_trailing_slash
|
281 |
def index(self, **kw):
|
281 |
def index(self, **kw):
|
282 |
mount = c.project.first_mount('read')
|
282 |
mount = c.project.first_mount('read')
|
283 |
activity_enabled = asbool(config.get('activitystream.enabled', False))
|
283 |
activity_enabled = config.get('activitystream.enabled', False)
|
|
|
284 |
activity_enabled = request.cookies.get('activitystream.enabled', activity_enabled)
|
|
|
285 |
activity_enabled = asbool(activity_enabled)
|
284 |
if activity_enabled and c.project.app_instance('activity'):
|
286 |
if activity_enabled and c.project.app_instance('activity'):
|
285 |
redirect('activity/')
|
287 |
redirect('activity/')
|
286 |
elif mount is not None:
|
288 |
elif mount is not None:
|
287 |
if 'ac' in mount:
|
289 |
if 'ac' in mount:
|
288 |
redirect(mount['ac'].options.mount_point + '/')
|
290 |
redirect(mount['ac'].options.mount_point + '/')
|