[feature/delete-auto-logins] improved styling and fixes language

Table ahs been styled. Date is now formatted properly instead of
the unix timestamp being displayed earlier. fixes small mistake in language
entry

PHPBB3-9647
This commit is contained in:
Dhruv Goel 2012-04-13 21:29:31 +05:30
parent bdf66b27ab
commit 71f8416480
3 changed files with 13 additions and 9 deletions

View file

@ -665,7 +665,7 @@ class ucp_profile
'KEY' => $row['key_id'],
'IP' => $row['last_ip'],
'LOGIN_TIME' => $row['last_login'],
'LOGIN_TIME' => $user->format_date($row['last_login']),
));
}

View file

@ -377,7 +377,7 @@ $lang = array_merge($lang, array(
'PREFERENCES_UPDATED' => 'Your preferences have been updated.',
'PROFILE_INFO_NOTICE' => 'Please note that this information may be viewable to other members. Be careful when including any personal details. Any fields marked with a * must be completed.',
'PROFILE_UPDATED' => 'Your profile has been updated.',
'PROFILE_AUTOLOGIN_KEYS' => 'The persisten login keys can be selected and deleted.',
'PROFILE_AUTOLOGIN_KEYS' => 'The persistent login keys can be selected and deleted.',
'PROFILE_NO_AUTOLOGIN_KEYS' => 'There are no saved persistent login keys.',
'RECIPIENT' => 'Recipient',

View file

@ -16,21 +16,25 @@
<!-- ENDIF -->
<!-- IF .sessions -->
<p>{L_PROFILE_AUTOLOGIN_KEYS}</p>
<table>
<table cellspacing="1" class="table1">
<thead>
<tr>
<th></th>
<th>Mark</th>
<th>Key</th>
<th>IP</th>
<th>Login-Time</th>
</tr>
</thead>
<tbody>
<!-- BEGIN sessions -->
<tr>
<td><input type="checkbox" name="keys[]" value="{sessions.KEY}" /></td>
<td>{sessions.KEY}</td>
<td>{sessions.IP}</td>
<td>{sessions.LOGIN_TIME}</td>
<!-- IF sessions.S_ROW_COUNT is even --><tr class="bg1"><!-- ELSE --><tr class="bg2"><!-- ENDIF -->
<td style="text-align: center"><input type="checkbox" name="keys[]" value="{sessions.KEY}" id="{sessions.KEY}"/></td>
<td><label for="{sessions.KEY}">{sessions.KEY}</label></td>
<td style="text-align: center">{sessions.IP}</td>
<td style="text-align: center">{sessions.LOGIN_TIME}</td>
</tr>
<!-- END sessions -->
</tbody>
</table>
<!-- ELSE -->
<p>{L_PROFILE_NO_AUTOLOGIN_KEYS}</p>