Add a basic usage counter for enterprise
This commit is contained in:
parent
93cd7de0e0
commit
109850b428
8 changed files with 109 additions and 29 deletions
|
@ -24,10 +24,11 @@
|
|||
</div>
|
||||
|
||||
<!-- Chart -->
|
||||
<div>
|
||||
<div id="repository-usage-chart" class="usage-chart limit-{{limit}}"></div>
|
||||
<span class="usage-caption" ng-show="chart">Repository Usage</span>
|
||||
</div>
|
||||
<div class="usage-chart" total="subscribedPlan.privateRepos || 0"
|
||||
current="subscription.usedPrivateRepos || 0"
|
||||
limit="limit"
|
||||
usage-title="Repository Usage"
|
||||
ng-show="!planLoading"></div>
|
||||
|
||||
<!-- Plans Table -->
|
||||
<table class="table table-hover plans-list-table" ng-show="!planLoading">
|
||||
|
|
2
static/directives/usage-chart.html
Normal file
2
static/directives/usage-chart.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
<span id="usage-chart-element" class="usage-chart-element" ng-class="'limit-' + limit" ng-show="total != null"></span>
|
||||
<span class="usage-caption" ng-show="total != null && usageTitle">{{ usageTitle }}</span>
|
Reference in a new issue