Commit 77dfaba7 authored by Illya Klymov's avatar Illya Klymov

Merge branch 'yo-gl-new-ui-admin-license' into 'master'

Apply new GitLab UI for buttons and card in admin/license

See merge request gitlab-org/gitlab!52408
parents 217d8f93 fa71ec74
---
title: Apply new GitLab UI for buttons and card in admin/license
merge_request: 52408
author: Yogi (@yo)
type: other
.row .row
.col-md-6 .col-md-6
.card .gl-card.gl-mb-5
.card-header .gl-card-header
= _('Licensed to') = _('Licensed to')
%ul.content-list .gl-card-body
- @license.licensee.each do |label, value| %ul.content-list
%li - @license.licensee.each do |label, value|
%span.light= succeed(':') { label } %li
%strong= value %span.light= succeed(':') { label }
%strong= value
.card.js-license-info-panel .gl-card.js-license-info-panel.gl-mb-5
.card-header .gl-card-header
= _('Details') = _('Details')
%ul.content-list .gl-card-body
%li %ul.content-list
%span.light= _('Plan:') %li
%strong= @license.plan.capitalize %span.light= _('Plan:')
- unless @license.ultimate? %strong= @license.plan.capitalize
= ' - ' - unless @license.ultimate?
= link_to _('Contact Sales to upgrade'), = ' - '
'https://about.gitlab.com/sales/?inapplink=contactsalessm', = link_to _('Contact Sales to upgrade'),
class: 'inline-link', 'https://about.gitlab.com/sales/?inapplink=contactsalessm',
target: :_blank, class: 'inline-link',
rel: :noreferrer target: :_blank,
%li rel: :noreferrer
%span.light= _('Uploaded:') %li
%strong= time_ago_with_tooltip @license.created_at %span.light= _('Uploaded:')
%li %strong= time_ago_with_tooltip @license.created_at
%span.light= _('Started:') %li
%strong= time_ago_with_tooltip @license.starts_at %span.light= _('Started:')
%li %strong= time_ago_with_tooltip @license.starts_at
%span.light %li
= render 'license_status' %span.light
= render 'license_status'
- if @license.expired? - if @license.expired?
%span.badge.badge-danger.float-right %span.badge.badge-danger.float-right
%strong= _('Expired') %strong= _('Expired')
%li %li
%span.light= _('License ID:') %span.light= _('License ID:')
%strong= @license.license_id %strong= @license.license_id
= clipboard_button(text: @license.license_id, title: _("Copy ID"), class: "btn-transparent btn-clipboard") = clipboard_button(text: @license.license_id, title: _("Copy ID"), class: "btn-transparent btn-clipboard")
.col-md-6 .col-md-6
.card.border-info .gl-card.border-info.gl-mb-5
.card-header.bg-info.text-white .gl-card-header.bg-info.text-white
= _('Download license') = _('Download license')
.card-body .gl-card-body
%p= html_escape(_('Your license will be included in your GitLab backup and will survive upgrades, so in normal usage you should never need to re-upload your %{code_open}.gitlab-license%{code_close} file.')) % { code_open: '<code>'.html_safe, code_close: '</code>'.html_safe } %p= html_escape(_('Your license will be included in your GitLab backup and will survive upgrades, so in normal usage you should never need to re-upload your %{code_open}.gitlab-license%{code_close} file.')) % { code_open: '<code>'.html_safe, code_close: '</code>'.html_safe }
%p= _('Still, we recommend keeping a backup saved somewhere. Otherwise, if you ever need it and have lost it, you will need to request GitLab Inc. to send it to you again.') %p= _('Still, we recommend keeping a backup saved somewhere. Otherwise, if you ever need it and have lost it, you will need to request GitLab Inc. to send it to you again.')
%br %br
= link_to _('Download license'), download_admin_license_path, class: 'gl-button btn btn-info' = link_to _('Download license'), download_admin_license_path, class: 'gl-button btn btn-info'
= link_to _('Customer Portal'), 'https://customers.gitlab.com', class: 'gl-button btn btn-info btn-inverted', data: { track_event: 'click_text', track_label: 'license_dashboard', track_property: 'customer_portal' }, target: '_blank', rel: 'noopener noreferrer' = link_to _('Customer Portal'), 'https://customers.gitlab.com', class: 'gl-button btn btn-info btn-inverted', data: { track_event: 'click_text', track_label: 'license_dashboard', track_property: 'customer_portal' }, target: '_blank', rel: 'noopener noreferrer'
.card.border-danger .gl-card.border-danger.gl-mb-5
.card-header.bg-danger.text-white .gl-card-header.bg-danger.text-white
= _('Remove license') = _('Remove license')
.card-body .gl-card-body
%p= _('If you remove this license, GitLab will fall back on the previous license, if any.') %p= _('If you remove this license, GitLab will fall back on the previous license, if any.')
%p= _('If there is no previous license or if the previous license has expired, some GitLab functionality will be blocked until a new, valid license is uploaded.') %p= _('If there is no previous license or if the previous license has expired, some GitLab functionality will be blocked until a new, valid license is uploaded.')
%br %br
......
= link_to _('Buy License'), ::EE::SUBSCRIPTIONS_PLANS_URL, target: '_blank', rel: 'noopener noreferrer nofollow', class: 'gl-button btn btn-success btn-inverted float-right btn-buy-license' = link_to _('Buy License'), ::EE::SUBSCRIPTIONS_PLANS_URL, target: '_blank', rel: 'noopener noreferrer nofollow', class: 'gl-button btn btn-success btn-inverted float-right btn-buy-license'
= link_to _('Upload New License'), new_admin_license_path, class: 'gl-button btn float-right btn-upload-license gl-mr-3', data: { qa_selector: 'license_upload_link' } = link_to _('Upload New License'), new_admin_license_path, class: 'gl-button btn btn-default float-right btn-upload-license gl-mr-3', data: { qa_selector: 'license_upload_link' }
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