mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-18 16:36:15 +00:00
add mode
This commit is contained in:
@@ -146,6 +146,7 @@ class SysInfo(APIView):
|
||||
'is_pro': is_pro,
|
||||
'with_license': with_license,
|
||||
'license_expiration': license_dict.get('Expiration', ''),
|
||||
'license_mode': license_dict.get('Mode', ''),
|
||||
'license_maxusers': max_users,
|
||||
'license_to': license_dict.get('Name', ''),
|
||||
'total_storage': total_storage,
|
||||
|
@@ -138,7 +138,11 @@
|
||||
{% trans "Professional Edition" %}
|
||||
<% if (with_license) { %>
|
||||
{% trans "licensed to" %} <%- license_to %>,
|
||||
{% trans "expires on" %} <%- license_expiration %>
|
||||
<% if (license_mode == 'lifetime') { %>
|
||||
{% trans "upgrade service expired in" %} <%- license_expiration %>
|
||||
<% } else { %>
|
||||
{% trans "expires on" %} <%- license_expiration %>
|
||||
<% } %>
|
||||
<% } %>
|
||||
|
||||
<% if (app.pageOptions.is_default_admin) { %>
|
||||
|
Reference in New Issue
Block a user