- page_title _('License')

%h3.page-title
  = _('Your License')
  - if @license&.trial?
    = render 'upload_buy_license'
  - else
    = link_to _('Upload New License'), new_admin_license_path, class: 'gl-button btn btn-confirm float-right', data: { qa_selector: 'license_upload_link' }

%hr

- if License.future_dated_only?
  .gl-alert.gl-alert-info
    = sprite_icon('information-o', css_class: 'gl-icon gl-alert-icon gl-alert-icon-no-title')
    .gl-alert-body
      %h4.gl-alert-title= _('You do not have an active license')
      = _('You have a license that activates at a future date. Please see the License History table below.')

- if @license.present?
  = render 'info'
  .license-panel.gl-mt-5
    = render 'breakdown'

- if @licenses.present?
  = render 'license_history'
