Merge pull request #461 from nextcloud/session-styling
Minor sessions/app password improvements
This commit is contained in:
commit
9a7b27b238
4 changed files with 18 additions and 7 deletions
|
@ -102,7 +102,7 @@ table.nostyle td { padding: 0.2em 0; }
|
||||||
#sessions table,
|
#sessions table,
|
||||||
#apppasswords table {
|
#apppasswords table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: 150px;
|
min-height: 50px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
max-width: 580px;
|
max-width: 580px;
|
||||||
}
|
}
|
||||||
|
@ -125,6 +125,11 @@ table.nostyle td { padding: 0.2em 0; }
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#sessions tr *:nth-child(2),
|
||||||
|
#apppasswords tr *:nth-child(2) {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
#sessions .token-list td a.icon-delete,
|
#sessions .token-list td a.icon-delete,
|
||||||
#apppasswords .token-list td a.icon-delete {
|
#apppasswords .token-list td a.icon-delete {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
comparator: function (t1, t2) {
|
comparator: function (t1, t2) {
|
||||||
var ts1 = parseInt(t1.get('lastActivity'), 10);
|
var ts1 = parseInt(t1.get('lastActivity'), 10);
|
||||||
var ts2 = parseInt(t2.get('lastActivity'), 10);
|
var ts2 = parseInt(t2.get('lastActivity'), 10);
|
||||||
return ts1 < ts2;
|
return ts2 - ts1;
|
||||||
},
|
},
|
||||||
|
|
||||||
tokenType: null,
|
tokenType: null,
|
||||||
|
|
|
@ -114,14 +114,18 @@
|
||||||
// Chrome User Agent from https://developer.chrome.com/multidevice/user-agent
|
// Chrome User Agent from https://developer.chrome.com/multidevice/user-agent
|
||||||
chrome: /^Mozilla\/5\.0 \([^)]*(Windows|OS X|Linux)[^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Chrome\/(\d+)[0-9.]+ (?:Mobile Safari|Safari)\/[0-9.]+$/,
|
chrome: /^Mozilla\/5\.0 \([^)]*(Windows|OS X|Linux)[^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Chrome\/(\d+)[0-9.]+ (?:Mobile Safari|Safari)\/[0-9.]+$/,
|
||||||
// Safari User Agent from http://www.useragentstring.com/pages/Safari/
|
// Safari User Agent from http://www.useragentstring.com/pages/Safari/
|
||||||
safari: /^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Version\/([0-9]+)[0-9.]+ Safari\/[0-9.A-Z]+$/,
|
safari: /^Mozilla\/5\.0 \([^)]*(Windows|OS X)[^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\)(?: Version\/([0-9]+)[0-9.]+)? Safari\/[0-9.A-Z]+$/,
|
||||||
// Android Chrome user agent: https://developers.google.com/chrome/mobile/docs/user-agent
|
// Android Chrome user agent: https://developers.google.com/chrome/mobile/docs/user-agent
|
||||||
androidChrome: /Android.*(?:; (.*) Build\/).*Chrome\/(\d+)[0-9.]+/,
|
androidChrome: /Android.*(?:; (.*) Build\/).*Chrome\/(\d+)[0-9.]+/,
|
||||||
iphone: / *CPU +iPhone +OS +(\d+)_\d+ +like +Mac +OS +X */,
|
iphone: / *CPU +iPhone +OS +(\d+)_\d+ +like +Mac +OS +X */,
|
||||||
iosClient: /^Mozilla\/5\.0 \(iOS\) ownCloud\-iOS.*$/,
|
iosClient: /^Mozilla\/5\.0 \(iOS\) ownCloud\-iOS.*$/,
|
||||||
androidClient:/^Mozilla\/5\.0 \(Android\) ownCloud\-android.*$/,
|
androidClient:/^Mozilla\/5\.0 \(Android\) ownCloud\-android.*$/,
|
||||||
// DAVdroid/1.2 (2016/07/03; dav4android; okhttp3) Android/6.0.1
|
// DAVdroid/1.2 (2016/07/03; dav4android; okhttp3) Android/6.0.1
|
||||||
davDroid: /DAVdroid\/([0-9.]+)/
|
davDroid: /DAVdroid\/([0-9.]+)/,
|
||||||
|
// Mozilla/5.0 (U; Linux; Maemo; Jolla; Sailfish; like Android 4.3) AppleWebKit/538.1 (KHTML, like Gecko) WebPirate/2.0 like Mobile Safari/538.1 (compatible)
|
||||||
|
webPirate: /(Sailfish).*WebPirate\/(\d+)/,
|
||||||
|
// Mozilla/5.0 (Maemo; Linux; U; Jolla; Sailfish; Mobile; rv:31.0) Gecko/31.0 Firefox/31.0 SailfishBrowser/1.0
|
||||||
|
sailfishBrowser: /(Sailfish).*SailfishBrowser\/(\d+)/
|
||||||
};
|
};
|
||||||
var nameMap = {
|
var nameMap = {
|
||||||
ie: t('setting', 'Internet Explorer'),
|
ie: t('setting', 'Internet Explorer'),
|
||||||
|
@ -133,7 +137,9 @@
|
||||||
iphone: t('setting', 'iPhone'),
|
iphone: t('setting', 'iPhone'),
|
||||||
iosClient: t('setting', 'iOS Client'),
|
iosClient: t('setting', 'iOS Client'),
|
||||||
androidClient: t('setting', 'Android Client'),
|
androidClient: t('setting', 'Android Client'),
|
||||||
davDroid: 'DAVdroid'
|
davDroid: 'DAVdroid',
|
||||||
|
webPirate: 'WebPirate',
|
||||||
|
sailfishBrowser: 'SailfishBrowser'
|
||||||
};
|
};
|
||||||
|
|
||||||
if (matches) {
|
if (matches) {
|
||||||
|
|
|
@ -172,7 +172,7 @@ if($_['passwordChangeSupported']) {
|
||||||
<thead class="token-list-header">
|
<thead class="token-list-header">
|
||||||
<tr>
|
<tr>
|
||||||
<th><?php p($l->t('Device'));?></th>
|
<th><?php p($l->t('Device'));?></th>
|
||||||
<th><?php p($l->t('Recent activity'));?></th>
|
<th><?php p($l->t('Last activity'));?></th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -188,7 +188,7 @@ if($_['passwordChangeSupported']) {
|
||||||
<thead class="hidden-when-empty">
|
<thead class="hidden-when-empty">
|
||||||
<tr>
|
<tr>
|
||||||
<th><?php p($l->t('Name'));?></th>
|
<th><?php p($l->t('Name'));?></th>
|
||||||
<th><?php p($l->t('Recent activity'));?></th>
|
<th><?php p($l->t('Last activity'));?></th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
Loading…
Reference in a new issue