skip license expire warning if cloud

This commit is contained in:
Thein Lin Kyaw
2020-07-14 16:17:20 +06:30
parent b3c14f219d
commit 495e47601a

View File

@@ -1,3 +1,5 @@
<% return if ENV['SERVER_MODE'] == 'cloud' %>
<% license_status = current_license.detail_with_local_file %> <% license_status = current_license.detail_with_local_file %>
<% renewable_date = current_license.read_license("renewable_date") %> <% renewable_date = current_license.read_license("renewable_date") %>
<% date_count = (renewable_date.to_date - Date.today).to_i %> <% date_count = (renewable_date.to_date - Date.today).to_i %>
@@ -21,7 +23,6 @@
<span aria-hidden="true" class="text-white">&times;</span> <span aria-hidden="true" class="text-white">&times;</span>
</button> </button>
</div> </div>
<% end %> <% end %>
<script> <script>