<%= t '.trial_license'%> - <%= link_to_popup t('common.enter_license_code'), :url => edit_license_path(:id => @trial_license ? @trial_license.id : -2), :method => :get %> <%= " #{link_to_function(t("common.clear"), "clearTrialLicense()", ":method => :get")}" if @license_info.getTrialLicense().getLicenseType() == 2 %>

<% if @license_info.getTrialLicense().getLicenseType() == -1 %>

<%= t_label 'licenses.primary_license_header.license_status'%>

<%= t 'common.none'%>

<% elsif @license_info.getTrialLicense().getLicenseType() == 0 %>

<%= t_label 'licenses.primary_license_header.license_status'%>

<%= t 'common.invalid_license'%>

<% elsif @license_info.getTrialLicense().getLicenseType() == 2 %>

<%= t_label 'common.expiration_date'%>

<%= format_timestamp @license_info.getTrialLicense().getExpirationDate().getTime() %>

<% unless (@license_info.getTrialLicense().getLicenseHash().nil?) || (@license_info.getTrialLicense().getLicenseHash() == "0000000000") %>

<%= t_label 'licenses.trial_license_header.valid_on_server'%>

<% if @license_info.getTrialLicense().isValidOn(@hardware_hash) %>

<%= t 'licenses.trial_license_header.valid_on_server_yes'%>

<% else %>

<%= t 'licenses.trial_license_header.valid_on_server_no'%>

<% end %>
<% end %> <% end %>