Commit f78cad96 authored by Chloe Liu's avatar Chloe Liu

Add qa-selector to page element on admin license page

parent b5c68b22
......@@ -9,7 +9,7 @@
.col-sm-6.d-flex.gl-mb-5
.gl-card
.gl-card-body
%h2.gl-mt-0
%h2.gl-mt-0{ data: { "qa-selector": "users_in_license" } }
= licensed_users(@license)
.text-uppercase.gl-mb-4= _('Users in License')
- if @license.will_expire?
......@@ -22,7 +22,7 @@
.col-sm-6.d-flex.gl-mb-5
.gl-card
.gl-card-body
%h2.gl-mt-0
%h2.gl-mt-0{ data: { "qa-selector": "billable_users" } }
= number_with_delimiter @license.daily_billable_users_count
.text-uppercase.gl-mb-4= _('Billable Users')
%p
......@@ -32,14 +32,14 @@
.col-sm-6.d-flex.gl-mb-5
.gl-card.flex-fill
.gl-card-body
%h2.gl-mt-0
%h2.gl-mt-0{ data: { "qa-selector": "maximum_users" } }
= number_with_delimiter @license.maximum_user_count
.text-uppercase.gl-mb-4= _('Maximum Users')
= _('This is the highest peak of users on your installation since the license started.')
.col-sm-6.d-flex.gl-mb-5
.gl-card
.gl-card-body
%h2.gl-mt-0
%h2.gl-mt-0{ data: { "qa-selector": "users_over_license" } }
= number_with_delimiter users_over_license
.text-uppercase.gl-mb-4= _('Users over License')
- if users_over_license > 0
......
......@@ -17,7 +17,7 @@
%ul.content-list
%li
%span.light= _('Plan:')
%strong= @license.plan.capitalize
%strong{ data: { "qa-selector": "plan_name" } }= @license.plan.capitalize
- unless @license.ultimate?
= ' - '
= link_to _('Contact Sales to upgrade'),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment