Added db keys as hover message (title attrib) in

table headers of uploads lists.
They will merely serve as reminders for those who want to use the sort
keys.

Fixed registration and token change dates displaying when unset.

Bumped v1 version string and rebuilt client assets.
This commit is contained in:
Bobby Wibowo 2020-05-17 00:33:23 +07:00
parent 9c56dd327a
commit 8cd76a31f9
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF
4 changed files with 16 additions and 16 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -732,13 +732,13 @@ page.getUploads = (params = {}) => {
<thead>
<tr>
<th><input id="selectAll" class="checkbox" type="checkbox" title="Select all" data-action="select-all"></th>
<th>File name</th>
${params.album === undefined ? `<th>${params.all ? 'User' : 'Album'}</th>` : ''}
${allAlbums ? '<th>Album</th>' : ''}
<th>Size</th>
${params.all ? '<th>IP</th>' : ''}
<th>Upload date</th>
${hasExpiryDateColumn ? '<th>Expiry date</th>' : ''}
<th title="Key: name">File name</th>
${params.album === undefined ? `<th title="Key: ${params.all ? 'userid">User' : 'albumid">Album'}</th>` : ''}
${allAlbums ? '<th title="Key: albumid">Album</th>' : ''}
<th title="Key: size">Size</th>
${params.all ? '<th title="Key: ip">IP</th>' : ''}
<th title="Key: timestamp">Upload date</th>
${hasExpiryDateColumn ? '<th title="Key: expirydate">Expiry date</th>' : ''}
<th></th>
</tr>
</thead>
@ -2061,12 +2061,12 @@ page.getUsers = (params = {}) => {
<thead>
<tr>
<th><input id="selectAll" class="checkbox" type="checkbox" title="Select all" data-action="select-all"></th>
<th>Username</th>
<th title="Key: username">Username</th>
<th>Uploads</th>
<th>Usage</th>
<th>Group</th>
<th>Registration date</th>
<th>Last token update</th>
<th title="Key: permission">Group</th>
<th title="Key: registration">Registration date</th>
<th title="Key: timestamp">Last token update</th>
<th></th>
</tr>
</thead>
@ -2102,10 +2102,10 @@ page.getUsers = (params = {}) => {
displayGroup
}
const prettyDate = user.registration !== undefined
const prettyDate = user.registration
? page.getPrettyDate(new Date(user.registration * 1000))
: '-'
const prettyTokenUpdate = user.timestamp !== undefined
const prettyTokenUpdate = user.timestamp
? page.getPrettyDate(new Date(user.timestamp * 1000))
: '-'

View File

@ -1,5 +1,5 @@
{
"1": "1589649062",
"1": "1589650309",
"2": "1589010026",
"3": "1581416390",
"4": "1581416390",