summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-06-21 12:15:38 +0200
committerGitHub <noreply@github.com>2016-06-21 12:15:38 +0200
commitaf98e3e641220db4ddf38a9270f535603526f6c5 (patch)
treefc1e688de84e253193ce96aa698e4582c4a259c4
parentca168265ef04c3ea1b5be468697fa4b55d1e6b38 (diff)
parenta5a66f38f1cae2b623d95c739e8f8f6087c41af2 (diff)
downloadnextcloud-server-af98e3e641220db4ddf38a9270f535603526f6c5.tar.gz
nextcloud-server-af98e3e641220db4ddf38a9270f535603526f6c5.zip
Merge pull request #25042 from owncloud/session-settings-ellipsis
add overflow ellipsis to session and device tokens list
-rw-r--r--settings/css/settings.css4
-rw-r--r--settings/js/authtoken_view.js9
-rw-r--r--settings/templates/personal.php56
3 files changed, 36 insertions, 33 deletions
diff --git a/settings/css/settings.css b/settings/css/settings.css
index 5fc96343502..04538558cae 100644
--- a/settings/css/settings.css
+++ b/settings/css/settings.css
@@ -120,6 +120,10 @@ table.nostyle td { padding: 0.2em 0; }
#sessions .token-list td,
#devices .token-list td {
border-top: 1px solid #DDD;
+ text-overflow: ellipsis;
+ max-width: 200px;
+ white-space: nowrap;
+ overflow: hidden;
}
#sessions .token-list td a.icon-delete,
#devices .token-list td a.icon-delete {
diff --git a/settings/js/authtoken_view.js b/settings/js/authtoken_view.js
index 664dfd28148..b1906f0b338 100644
--- a/settings/js/authtoken_view.js
+++ b/settings/js/authtoken_view.js
@@ -27,9 +27,9 @@
var TEMPLATE_TOKEN =
'<tr data-id="{{id}}">'
- + '<td>{{name}}</td>'
- + '<td><span class="last-activity" title="{{lastActivityTime}}">{{lastActivity}}</span></td>'
- + '<td><a class="icon-delete" title="' + t('core', 'Disconnect') + '"></a></td>'
+ + '<td class="has-tooltip" title="{{name}}"><span class="token-name">{{name}}</span></td>'
+ + '<td><span class="last-activity has-tooltip" title="{{lastActivityTime}}">{{lastActivity}}</span></td>'
+ + '<td><a class="icon-delete has-tooltip" title="' + t('core', 'Disconnect') + '"></a></td>'
+ '<tr>';
var SubView = Backbone.View.extend({
@@ -80,8 +80,7 @@
viewData.lastActivityTime = OC.Util.formatDate(ts, 'LLL');
var html = _this.template(viewData);
var $html = $(html);
- $html.find('.last-activity').tooltip();
- $html.find('.icon-delete').tooltip();
+ $html.find('.has-tooltip').tooltip({container: 'body'});
list.append($html);
});
},
diff --git a/settings/templates/personal.php b/settings/templates/personal.php
index ced76fc3bf6..942944ffab7 100644
--- a/settings/templates/personal.php
+++ b/settings/templates/personal.php
@@ -139,6 +139,34 @@ if($_['passwordChangeSupported']) {
}
?>
+<form id="language" class="section">
+ <h2>
+ <label for="languageinput"><?php p($l->t('Language'));?></label>
+ </h2>
+ <select id="languageinput" name="lang" data-placeholder="<?php p($l->t('Language'));?>">
+ <option value="<?php p($_['activelanguage']['code']);?>">
+ <?php p($_['activelanguage']['name']);?>
+ </option>
+ <?php foreach($_['commonlanguages'] as $language):?>
+ <option value="<?php p($language['code']);?>">
+ <?php p($language['name']);?>
+ </option>
+ <?php endforeach;?>
+ <optgroup label="––––––––––"></optgroup>
+ <?php foreach($_['languages'] as $language):?>
+ <option value="<?php p($language['code']);?>">
+ <?php p($language['name']);?>
+ </option>
+ <?php endforeach;?>
+ </select>
+ <?php if (OC_Util::getEditionString() === ''): ?>
+ <a href="https://www.transifex.com/projects/p/owncloud/"
+ target="_blank" rel="noreferrer">
+ <em><?php p($l->t('Help translate'));?></em>
+ </a>
+ <?php endif; ?>
+</form>
+
<div id="sessions" class="section">
<h2><?php p($l->t('Sessions'));?></h2>
<span class="hidden-when-empty"><?php p($l->t('These are the web, desktop and mobile clients currently logged in to your ownCloud.'));?></span>
@@ -180,34 +208,6 @@ if($_['passwordChangeSupported']) {
</div>
</div>
-<form id="language" class="section">
- <h2>
- <label for="languageinput"><?php p($l->t('Language'));?></label>
- </h2>
- <select id="languageinput" name="lang" data-placeholder="<?php p($l->t('Language'));?>">
- <option value="<?php p($_['activelanguage']['code']);?>">
- <?php p($_['activelanguage']['name']);?>
- </option>
- <?php foreach($_['commonlanguages'] as $language):?>
- <option value="<?php p($language['code']);?>">
- <?php p($language['name']);?>
- </option>
- <?php endforeach;?>
- <optgroup label="––––––––––"></optgroup>
- <?php foreach($_['languages'] as $language):?>
- <option value="<?php p($language['code']);?>">
- <?php p($language['name']);?>
- </option>
- <?php endforeach;?>
- </select>
- <?php if (OC_Util::getEditionString() === ''): ?>
- <a href="https://www.transifex.com/projects/p/owncloud/"
- target="_blank" rel="noreferrer">
- <em><?php p($l->t('Help translate'));?></em>
- </a>
- <?php endif; ?>
-</form>
-
<div id="clientsbox" class="section clientsbox">
<h2><?php p($l->t('Get the apps to sync your files'));?></h2>
<a href="<?php p($_['clients']['desktop']); ?>" rel="noreferrer" target="_blank">