Merge pull request #4741 from wenottingham/there-are-no-limits

Tweak license partial to properly show 'unlimited' for the value we consider unlimited.

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot]
2019-09-13 17:36:04 +00:00
committed by GitHub

View File

@@ -48,19 +48,23 @@
{{time.remaining}}
</div>
</div>
<div class="License-field">
<div class="License-field" ng-show='license.license_info.available_instances < 9999999'>
<div class="License-field--label" translate>Hosts Available</div>
<div class="License-field--content">
{{license.license_info.available_instances}}
</div>
</div>
<div class="License-field" ng-show='license.license_info.available_instances >= 9999999'>
<div class="License-field--label" translate>Hosts Available</div>
<div class="License-field--content" translate>Unlimited</div>
</div>
<div class="License-field">
<div class="License-field--label" translate>Hosts Used</div>
<div class="License-field--content">
{{license.license_info.current_instances}}
</div>
</div>
<div class="License-field License-greenText">
<div class="License-field License-greenText" ng-show='license.license_info.available_instances < 9999999'>
<div class="License-field--label" translate>Hosts Remaining</div>
<div class="License-field--content">
{{license.license_info.free_instances}}