def dashboard(request, username): (teamUser, teamUserprofile) = _get_team_user_userprofile(request, username) feedAction = FeedAction() goto = feedAction.get_user_position(teamUser.id) if goto == None: goto = PositionKey.TIMELINE if goto == PositionKey.TIMELINE: return timeline(request, username) elif goto == PositionKey.PULL: return pull_merge(request, username) elif goto == PositionKey.ISSUES: return issues(request, username, 0) elif goto == PositionKey.NOTIF: return notif(request, username) return timeline(request, username)
def dashboard(request): feedAction = FeedAction() goto = feedAction.get_user_position(request.user.id) if goto == None: goto = PositionKey.FEED if goto == PositionKey.FEED: return feed(request) elif goto == PositionKey.TIMELINE: return timeline(request) elif goto == PositionKey.TODO: return todo(request) elif goto == PositionKey.PULL: return pull_merge(request) elif goto == PositionKey.ISSUES: return issues(request, 0) elif goto == PositionKey.EXPLORE: return explore(request) elif goto == PositionKey.NOTIF: return notif(request) return feed(request)