Change the screenshots section to be a single screenshot with clickable sections

This commit is contained in:
Joseph Schorr 2014-04-30 21:00:07 -04:00
parent cfcbc44c72
commit 2d18117e68
3 changed files with 83 additions and 28 deletions

View file

@ -265,6 +265,7 @@ function RepoListCtrl($scope, $sanitize, Restangular, UserService, ApiService) {
function LandingCtrl($scope, UserService, ApiService, Features, Config) {
$scope.namespace = null;
$scope.currentScreenshot = 'repo-view';
$scope.$watch('namespace', function(namespace) {
loadMyRepos(namespace);
@ -274,6 +275,10 @@ function LandingCtrl($scope, UserService, ApiService, Features, Config) {
loadMyRepos($scope.namespace);
});
$scope.changeScreenshot = function(screenshot) {
$scope.currentScreenshot = screenshot;
};
$scope.canCreateRepo = function(namespace) {
if (!$scope.user) { return false; }