Show More
@@ -266,8 +266,7 b' class BaseController(WSGIController):' | |||
|
266 | 266 | c.visual.lightweight_dashboard = str2bool(rc_config.get('rhodecode_lightweight_dashboard')) |
|
267 | 267 | c.visual.lightweight_dashboard_items = safe_int(config.get('dashboard_items', 100)) |
|
268 | 268 | c.visual.repository_fields = str2bool(rc_config.get('rhodecode_repository_fields')) |
|
269 | ||
|
270 | c.repo_name = get_repo_slug(request) | |
|
269 | c.repo_name = get_repo_slug(request) # can be empty | |
|
271 | 270 | c.backends = BACKENDS.keys() |
|
272 | 271 | c.unread_notifications = NotificationModel()\ |
|
273 | 272 | .get_unread_cnt_for_user(c.rhodecode_user.user_id) |
@@ -393,7 +393,8 b' class ScmModel(BaseModel):' | |||
|
393 | 393 | def get_pull_requests(self, repo): |
|
394 | 394 | repo = self._get_repo(repo) |
|
395 | 395 | return self.sa.query(PullRequest)\ |
|
396 |
.filter(PullRequest.other_repo == repo) |
|
|
396 | .filter(PullRequest.other_repo == repo)\ | |
|
397 | .filter(PullRequest.status != PullRequest.STATUS_CLOSED).count() | |
|
397 | 398 | |
|
398 | 399 | def mark_as_fork(self, repo, fork, user): |
|
399 | 400 | repo = self.__get_repo(repo) |
@@ -13,7 +13,7 b'' | |||
|
13 | 13 | </%def> |
|
14 | 14 | |
|
15 | 15 | <%def name="main()"> |
|
16 | ||
|
16 | ${self.context_bar('showpullrequest')} | |
|
17 | 17 | <div class="box"> |
|
18 | 18 | <!-- box / title --> |
|
19 | 19 | <div class="title"> |
General Comments 0
You need to be logged in to leave comments.
Login now