Change it so the front page does appear for signed in users, with a welcome message and a browse button
This commit is contained in:
parent
31914da4ca
commit
f12ed9859c
2 changed files with 11 additions and 7 deletions
|
@ -104,14 +104,15 @@ function LandingCtrl($scope, $timeout, Restangular, UserService) {
|
|||
|
||||
$scope.$watch( function () { return UserService.currentUser(); }, function (currentUser) {
|
||||
$scope.user = currentUser;
|
||||
if (currentUser && !currentUser.anonymous) {
|
||||
document.location = '/#/repository';
|
||||
}
|
||||
}, true);
|
||||
|
||||
$scope.awaitingConfirmation = false;
|
||||
$scope.registering = false;
|
||||
|
||||
$scope.browseRepos = function() {
|
||||
document.location = '/#/repository';
|
||||
};
|
||||
|
||||
$scope.register = function() {
|
||||
$('.form-signup').popover('hide');
|
||||
$scope.registering = true;
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
<div class="background-mask"></div>
|
||||
<div class="message-container">
|
||||
<div class="message">Secure hosting for <b>private</b> docker containers</div>
|
||||
<div class="sub-message">Use the docker images <b>your team</b> needs with the safety of <b>private</b> storage</div>
|
||||
<div class="sellcall"><a href="">Starting at $7/mo</a></div>
|
||||
<div class="sub-message" ng-show="user.anonymous">Use the docker images <b>your team</b> needs with the safety of <b>private</b> storage</div>
|
||||
<div class="sellcall" ng-show="user.anonymous"><a href="">Starting at $7/mo</a></div>
|
||||
</div>
|
||||
|
||||
<div class="signup-container">
|
||||
|
@ -24,11 +24,14 @@
|
|||
</div>
|
||||
</div>
|
||||
<div ng-show="!user.anonymous">
|
||||
<div class="sub-message">Some message about how awesome it is to be a Quay user goes here.</div>
|
||||
<div class="sub-message">
|
||||
Welcome <b>{{ user.username }}</b>!
|
||||
</div>
|
||||
<button class="btn btn-lg btn-primary btn-block" ng-click="browseRepos()">Browse repositories</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="shoutouts">
|
||||
<div class="shoutouts" ng-show="user.anonymous">
|
||||
<div class="shoutout">
|
||||
<i class="icon-lock"></i>
|
||||
<b>Secure</b>
|
||||
|
|
Reference in a new issue