Commit d1c676e2 authored by James Lopez's avatar James Lopez

Merge branch 'gl-card-license-history' into 'master'

Move license history to gl-table utility class

See merge request gitlab-org/gitlab!58531
parents 2d4659e8 4787fa0f
---
title: Move license history to gl-table utility class
merge_request: 58531
author: Yogi (@yo)
type: changed
......@@ -2,37 +2,36 @@
%h4= _('License History')
.card#license_history
%table.table
%thead.card-header
%tr
%table.gl-table.table#license_history
%thead
%tr
- licensee_keys.each do |label|
%th= label
%th= _('Plan')
%th= _('Uploaded on')
%th= _('Valid from')
%th= _('Expires on')
%th= _('Users in License')
%tbody
- @licenses.each do |license|
%tr{ class: ('gl-bg-blue-50 font-weight-bold gl-text-blue-500' if license == @license), data: { testid: ('license-current' if license == @license) } }
- licensee_keys.each do |label|
%th= label
%th= _('Plan')
%th= _('Uploaded on')
%th= _('Valid from')
%th= _('Expires on')
%th= _('Users in License')
%tbody
- @licenses.each do |license|
%tr{ class: ('gl-bg-blue-50 font-weight-bold gl-text-blue-500' if license == @license), data: { testid: ('license-current' if license == @license) } }
- licensee_keys.each do |label|
%td= license.licensee[label]
%td
%span
= license.plan.capitalize
%td
%span
= l(license.created_at, format: :with_timezone)
%td
%span
= l(license.starts_at)
%td
%span
= license.expires_at.present? ? l(license.expires_at) : _('Never')
%td
%span
- if license.restricted?(:active_user_count)
= license.restrictions[:active_user_count]
- else
= _('Unlimited')
%td= license.licensee[label]
%td
%span
= license.plan.capitalize
%td
%span
= l(license.created_at, format: :with_timezone)
%td
%span
= l(license.starts_at)
%td
%span
= license.expires_at.present? ? l(license.expires_at) : _('Never')
%td
%span
- if license.restricted?(:active_user_count)
= license.restrictions[:active_user_count]
- else
= _('Unlimited')
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