From 6d5a9e7a8641517a25b16d5b3069997c686a65fd Mon Sep 17 00:00:00 2001 From: joshuaruesweg Date: Mon, 2 Nov 2020 10:57:48 +0100 Subject: [PATCH] Add more compact view for sessions --- com.woltlab.wcf/templates/accountSecurity.tpl | 18 +++++++++--------- wcfsetup/install/lang/de.xml | 3 ++- wcfsetup/install/lang/en.xml | 3 ++- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/com.woltlab.wcf/templates/accountSecurity.tpl b/com.woltlab.wcf/templates/accountSecurity.tpl index 3965c1d0b4..d93e540c9b 100644 --- a/com.woltlab.wcf/templates/accountSecurity.tpl +++ b/com.woltlab.wcf/templates/accountSecurity.tpl @@ -14,15 +14,15 @@
-

{$session->getUserAgent()->getBrowser()}

- - {$session->getIpAddress()}
- {if $session->isCurrentSession()} - {lang}wcf.user.security.currentSession{/lang} - {else} - {lang}wcf.user.security.sessionLastActive{/lang} - {/if} -
+

{lang}wcf.user.security.sessionName{/lang}

+ +
+
{lang}wcf.user.security.lastActivity{/lang}
+
{if $session->isCurrentSession()}{lang}wcf.user.security.currentSession{/lang}{else}{@$session->getLastActivityTime()|time}{/if}
+ +
{lang}wcf.user.security.ipAddress{/lang}
+
{$session->getIpAddress()}
+
{if !$session->isCurrentSession()} diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index b4ff111b8f..2dd83fc19b 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -4825,10 +4825,11 @@ Die E-Mail-Adresse des neuen Benutzers lautet: {@$user->email} - getLastActivityTime()|time}]]> getUserAgent()->getBrowser()}{$session->getUserAgent()->getBrowser()}{if $session->getUserAgent()->getOS()} auf {$session->getUserAgent()->getOS()}{/if}{else}Unbekanntes Gerät{/if}]]> + + diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 1f3c93ce7b..c0bc1add7e 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -4822,10 +4822,11 @@ Open the link below to access the user profile: - getLastActivityTime()|time}]]> getUserAgent()->getBrowser()}{$session->getUserAgent()->getBrowser()}{if $session->getUserAgent()->getOS()} on {$session->getUserAgent()->getOS()}{/if}{else}Unknown Device{/if}]]> + + -- 2.20.1