diff rhodecode/lib/base.py @ 3580:7b9d4f6bb04e beta

show only open pull requests in the counter, and use repo context bar in pull requests view
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 24 Mar 2013 20:24:17 +0100
parents 7967d00e4692
children 10b4e34841a4
line wrap: on
line diff
--- a/rhodecode/lib/base.py	Sun Mar 24 19:58:24 2013 +0100
+++ b/rhodecode/lib/base.py	Sun Mar 24 20:24:17 2013 +0100
@@ -266,8 +266,7 @@
         c.visual.lightweight_dashboard = str2bool(rc_config.get('rhodecode_lightweight_dashboard'))
         c.visual.lightweight_dashboard_items = safe_int(config.get('dashboard_items', 100))
         c.visual.repository_fields = str2bool(rc_config.get('rhodecode_repository_fields'))
-
-        c.repo_name = get_repo_slug(request)
+        c.repo_name = get_repo_slug(request)  # can be empty
         c.backends = BACKENDS.keys()
         c.unread_notifications = NotificationModel()\
                         .get_unread_cnt_for_user(c.rhodecode_user.user_id)