2013-11-06 22:30:20 +00:00
< div class = "plan-manager-element" >
<!-- Loading/Changing -->
2015-04-27 18:40:41 +00:00
< div class = "cor-loader" ng-show = "planLoading" > < / div >
2013-11-06 22:30:20 +00:00
<!-- Alerts -->
2015-04-03 21:47:39 +00:00
< div class = "co-alert co-alert-danger" ng-show = "limit == 'over' && !planLoading" >
2013-11-06 22:59:16 +00:00
You are using more private repositories than your plan allows. Please
upgrade your subscription to avoid disruptions in your < span ng-show = "organization" > organization's< / span > service.
2013-11-06 22:30:20 +00:00
< / div >
2014-11-24 21:07:38 +00:00
2015-04-03 21:47:39 +00:00
< div class = "co-alert co-alert-warning" ng-show = "limit == 'at' && !planLoading" >
2014-02-18 22:52:58 +00:00
You are at your current plan's number of allowed private repositories. It might be time to think about
upgrading your subscription to avoid future disruptions in your < span ng-show = "organization" > organization's< / span > service.
2013-11-06 22:59:16 +00:00
< / div >
2015-04-03 21:47:39 +00:00
< div class = "co-alert co-alert-info" ng-show = "limit == 'near' && !planLoading" >
2013-11-06 22:30:20 +00:00
You are nearing the number of allowed private repositories. It might be time to think about
2013-11-06 22:59:16 +00:00
upgrading your subscription to avoid future disruptions in your < span ng-show = "organization" > organization's< / span > service.
2014-11-24 21:07:38 +00:00
< / div >
2014-04-23 05:10:31 +00:00
<!-- Trial info -->
2015-04-03 21:47:39 +00:00
< div class = "co-alert co-alert-success" ng-show = "subscription.trialEnd != null" style = "font-size: 125%" >
2014-04-23 05:10:31 +00:00
Free trial until < strong > {{ parseDate(subscription.trialEnd) | date }}< / strong >
< / div >
2014-11-24 21:07:38 +00:00
2013-11-06 22:30:20 +00:00
<!-- Chart -->
2014-10-28 20:33:13 +00:00
< div class = "usage-chart" total = "subscribedPlan.privateRepos || 0"
current="subscription.usedPrivateRepos || 0"
limit="limit"
usage-title="Repository Usage"
ng-show="!planLoading">< / div >
2013-11-06 22:30:20 +00:00
<!-- Plans Table -->
2015-01-12 17:35:06 +00:00
< div class = "visible-xs" style = "margin-top: 10px" > < / div >
2013-11-08 03:08:23 +00:00
< table class = "table table-hover plans-list-table" ng-show = "!planLoading" >
2013-11-06 22:30:20 +00:00
< thead >
< td > Plan< / td >
2015-01-12 17:35:06 +00:00
< td >
< span class = "hidden-xs" > Private Repositories< / span >
< span class = "visible-xs" > < i class = "fa fa-hdd-o" > < / i > < / span >
< / td >
< td style = "min-width: 64px" > < span class = "hidden-xs" > Price< / span > < span class = "visible-xs" > $/mo< / span > < / td >
2013-11-06 22:30:20 +00:00
< td > < / td >
< / thead >
2014-11-24 21:07:38 +00:00
2013-12-20 02:51:46 +00:00
< tr ng-repeat = "plan in plans" ng-show = "isPlanVisible(plan, subscribedPlan)"
2013-12-24 19:23:53 +00:00
ng-class="{'active':(subscribedPlan.stripeId === plan.stripeId), 'deprecated-plan':plan.deprecated}">
< td >
{{ plan.title }}
< div class = "deprecated-plan-label" ng-show = "plan.deprecated" >
2014-04-11 22:21:13 +00:00
< span class = "context-tooltip" data-title = "This plan has been discontinued. As a valued early adopter, you may continue to stay on this plan indefinitely." bs-tooltip = "tooltip.title" data-placement = "right" > Discontinued Plan< / span >
2013-12-24 19:23:53 +00:00
< / div >
< / td >
2013-11-06 22:30:20 +00:00
< td > {{ plan.privateRepos }}< / td >
< td > < div class = "plan-price" > ${{ plan.price / 100 }}< / div > < / td >
< td class = "controls" >
2013-12-20 02:51:46 +00:00
< div ng-switch = 'plan.deprecated' >
< div ng-switch-when = 'true' >
2013-12-23 21:43:45 +00:00
< button class = "btn btn-danger" ng-click = "cancelSubscription()" >
2015-04-27 18:40:41 +00:00
< span class = "cor-loader-inline" ng-show = "planChanging" > < / span >
2013-12-23 21:43:45 +00:00
< span ng-show = "!planChanging" > Cancel< / span >
< / button >
2013-11-06 22:30:20 +00:00
< / div >
< div ng-switch-default >
< button class = "btn" ng-show = "subscribedPlan.stripeId !== plan.stripeId"
ng-class="subscribedPlan.price == 0 ? 'btn-primary' : 'btn-default'"
ng-click="changeSubscription(plan.stripeId)">
2015-04-27 18:40:41 +00:00
< span class = "cor-loader-inline" ng-show = "planChanging" > < / span >
2013-11-06 22:30:20 +00:00
< span ng-show = "!planChanging && subscribedPlan.price != 0" > Change< / span >
2014-04-23 05:17:34 +00:00
< span ng-show = "!planChanging && subscribedPlan.price == 0 && !isExistingCustomer" > Start Free Trial< / span >
< span ng-show = "!planChanging && subscribedPlan.price == 0 && isExistingCustomer" > Subscribe< / span >
2013-11-06 22:30:20 +00:00
< / button >
2013-11-06 23:05:34 +00:00
< button class = "btn btn-danger" ng-show = "subscription.plan === plan.stripeId && plan.price > 0"
2013-11-06 22:30:20 +00:00
ng-click="cancelSubscription()">
2015-04-27 18:40:41 +00:00
< span class = "cor-loader-inline" ng-show = "planChanging" > < / span >
2013-11-06 22:30:20 +00:00
< span ng-show = "!planChanging" > Cancel< / span >
< / button >
< / div >
< / div >
< / td >
< / tr >
< / table >
< / div >