mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-25 06:42:49 +00:00
perf: 优化资产授权过期提示信息
This commit is contained in:
@@ -9,7 +9,7 @@ class PermedAssetsWillExpireUserMsg(UserMessage):
|
||||
def __init__(self, user, assets, day_count=0):
|
||||
super().__init__(user)
|
||||
self.assets = assets
|
||||
self.day_count = _('today') if day_count == 0 else day_count
|
||||
self.day_count = _('today') if day_count == 0 else day_count + _('day')
|
||||
|
||||
def get_html_msg(self) -> dict:
|
||||
subject = _("You permed assets is about to expire")
|
||||
|
@@ -5,7 +5,7 @@
|
||||
|
||||
<p>
|
||||
{% blocktranslate %}
|
||||
The following {{ item_type }} will expire in {{ count }} days
|
||||
The following {{ item_type }} will expire in {{ count }}
|
||||
{% endblocktranslate %}
|
||||
</p>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<br />
|
||||
<br/>
|
||||
-
|
||||
<p>
|
||||
{% trans 'If you have any question, please contact the administrator' %}
|
||||
|
Reference in New Issue
Block a user