perf: 优化资产授权过期提示信息

This commit is contained in:
wangruidong
2023-12-11 11:14:36 +08:00
committed by Bryan
parent 85fedf0704
commit c312cdb625
4 changed files with 31 additions and 18 deletions

View File

@@ -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")

View File

@@ -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' %}