Change the screenshots section to be a single screenshot with clickable sections
This commit is contained in:
parent
cfcbc44c72
commit
2d18117e68
3 changed files with 83 additions and 28 deletions
|
@ -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; }
|
||||
|
||||
|
|
Reference in a new issue