-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
87 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
'use strict'; | ||
|
||
angular.module('openshiftConsole') | ||
.controller('LandingPageController', function ($scope, Constants, DataService, Navigate) { | ||
|
||
$scope.saasOfferingsTitle = "What Do You Want to Build?"; | ||
$scope.saasOfferings = Constants.SAAS_OFFERINGS; | ||
|
||
$scope.navToProject = function(project) { | ||
Navigate.toProjectOverview(project.metadata.name); | ||
}; | ||
|
||
$scope.navToProjectList = function() { | ||
Navigate.toProjectList(); | ||
}; | ||
|
||
DataService.list({ | ||
group: 'servicecatalog.k8s.io', | ||
resource: 'serviceclasses' | ||
}, $scope).then(function(serviceClasses) { | ||
$scope.serviceClasses = serviceClasses.by('metadata.name'); | ||
}); | ||
|
||
DataService.list('imagestreams', {namespace: 'openshift'}).then(function(resp) { | ||
$scope.imageStreams = resp.by('metadata.name'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<default-header class="top-header"></default-header> | ||
<div class="wrap no-sidebar"> | ||
<div class="sidebar-left collapse navbar-collapse navbar-collapse-2"> | ||
<navbar-utility-mobile></navbar-utility-mobile> | ||
</div> | ||
<div class="middle surface-shaded"> | ||
<!-- Middle section --> | ||
<div class="middle-section"> | ||
<div class="middle-container"> | ||
<div class="middle-content"> | ||
<landing-page search-placeholder="Search Catalog"> | ||
<landingheader> | ||
<div class="build-applications-view"> | ||
<saas-list saas-title="saasOfferingsTitle" saas-offerings="saasOfferings"></saas-list> | ||
</div> | ||
</landingheader> | ||
<landingbody> | ||
<services-view service-classes="serviceClasses" image-streams="imageStreams"></services-view> | ||
</landingbody> | ||
<landingside> | ||
<projects-summary project-select="navToProject" show-projects="navToProjectList"></projects-summary> | ||
</landingside> | ||
</landing-page> | ||
</div><!-- /middle-content --> | ||
</div><!-- /middle-container --> | ||
</div><!-- /middle-section --> | ||
</div><!-- /middle --> | ||
</div><!-- /wrap --> |