Merge pull request #356 from coreos-inc/jsfixes

Small JS and HTML fixes
This commit is contained in:
Jimmy Zelinskie 2015-08-13 12:36:05 -04:00
commit 1a0dc0d604
3 changed files with 10 additions and 9 deletions

View file

@ -70,17 +70,17 @@
</div>
</div>
<div class="row testimonial" quay-require="['BILLING']">
<div class="tour-action" quay-require="['BILLING']">
<a href="/plans?trial-plan=personal">
<button class="btn btn-success">
Start free trial
</button>
</a>
<div class="row testimonial" quay-require="['BILLING']">
<div class="tour-action" quay-require="['BILLING']">
<a href="/plans?trial-plan=personal">
<button class="btn btn-success">
Start free trial
</button>
</a>
</div>
</div>
</div>
<!-- Organizations -->
<div class="product-tour" ng-if="kind == 'organizations'">
<div class="tour-section row tour-header">

View file

@ -37,7 +37,7 @@ angular.module('quay').directive('planManager', function () {
return !$scope.isPlanVisible(superseded, subscribedPlan);
}
return plan.stripeId === subscribedPlan.stripeId;
return subscribedPlan && plan.stripeId === subscribedPlan.stripeId;
}
return true;

View file

@ -31,6 +31,7 @@
var loadRepositories = function() {
var options = {
'namespace': orgname,
'public': true
};
$scope.repositoriesResource = ApiService.listReposAsResource().withOptions(options).get(function(resp) {