1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 16:36:15 +00:00
This commit is contained in:
zming
2017-11-06 10:11:16 +08:00
parent 60667e54a9
commit 62e7db3274
2 changed files with 6 additions and 1 deletions

View File

@@ -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,

View File

@@ -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) { %>