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 @@ ...@@ -19,7 +19,7 @@
%span.light #{label}: %span.light #{label}:
%strong= value %strong= value
.panel.panel-default .panel.panel-default.js-license-info-panel
.panel-heading .panel-heading
Details Details
%ul.well-list %ul.well-list
...@@ -39,9 +39,11 @@ ...@@ -39,9 +39,11 @@
- else - else
Expires: Expires:
- if @license.will_expire? && @license.active? - if @license.will_expire? && @license.active?
%strong= time_ago_with_tooltip(@license.expires_at)
- if @license.trial? - 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 - else
%strong Never %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