forked from ScoDoc/ScoDoc
Format affichage date page user
This commit is contained in:
parent
1cbdc97680
commit
1f5422f621
@ -27,15 +27,15 @@
|
||||
</div>
|
||||
{% if current_user.is_administrator() %}
|
||||
<div class="user_info_admin">
|
||||
<b>Dernière vue :</b> {{user.last_seen or "-"}}<br>
|
||||
<b>Dernière connexion CAS :</b> {{user.cas_last_login or "-"}}<br>
|
||||
<b>Dernière vue :</b> {{user.last_seen.strftime("%d/%m/%Y à %H:%M") if user.last_seen else "-"}}<br>
|
||||
<b>Dernière connexion CAS :</b> {{user.cas_last_login.strftime("%d/%m/%Y à %H:%M") if user.cas_last_login else "-"}}<br>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="user_basics">
|
||||
<b>Dernière modif mot de passe:</b>
|
||||
{{user.date_modif_passwd.isoformat() if user.date_modif_passwd else ""}}<br>
|
||||
{{user.date_modif_passwd.strftime("%d/%m/%Y") if user.date_modif_passwd else ""}}<br>
|
||||
<b>Date d'expiration:</b>
|
||||
{{user.date_expiration.isoformat() if user.date_expiration else "(sans limite)"}}
|
||||
{{user.date_expiration.strftime("%d/%m/%Y") if user.date_expiration else "(sans limite)"}}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
Loading…
Reference in New Issue
Block a user