% renewable_date = current_license.read_license("renewable_date") %> <% date_count = (renewable_date.to_date - Date.current).to_i %> <% day = pluralize( date_count, 'day' )%> <% if @license_status == 0 %> <% text = 'Your license has been expired.' %> <% else %> <% text = "Your license will expire in #{day}." %> <% end %>
<% end %>
<%= flash[:message] %>
<% end %>