Commit 9be00fd4 authored by Kushal Pandya's avatar Kushal Pandya

Show license type in expiration only when applied license type is trial

parent 74b8d670
......@@ -19,7 +19,7 @@
%span.light #{label}:
%strong= value
.panel.panel-default
.panel.panel-default.js-license-info-panel
.panel-heading
Details
%ul.well-list
......@@ -39,9 +39,11 @@
- else
Expires:
- if @license.will_expire? && @license.active?
%strong= time_ago_with_tooltip(@license.expires_at)
- if @license.trial?
%span Free trial will expire in #{pluralize(@license.remaining_days, 'day')}
%strong.has-tooltip{ title: @license.expires_at.to_formatted_s(:long), data: { placement: 'top' } }
Free trial will expire in #{pluralize(@license.remaining_days, 'day')}
- else
%strong= time_ago_with_tooltip(@license.expires_at)
- else
%strong Never
......
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