From 4d7fbcc49b18d8135f023ad01b3b10bef8323b64 Mon Sep 17 00:00:00 2001 From: q4speed Date: Wed, 14 Mar 2018 18:01:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=87=E5=AD=97=E8=BF=87?= =?UTF-8?q?=E9=95=BFbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/static/css/jumpserver.css | 6 ++++++ apps/templates/index.html | 11 ++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/apps/static/css/jumpserver.css b/apps/static/css/jumpserver.css index 29e786eb3..cf570c4ad 100644 --- a/apps/static/css/jumpserver.css +++ b/apps/static/css/jumpserver.css @@ -432,4 +432,10 @@ div.dataTables_wrapper div.dataTables_filter { font-size: 12px !important; } +.ellipsis { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + diff --git a/apps/templates/index.html b/apps/templates/index.html index a297adedd..e64287fbd 100644 --- a/apps/templates/index.html +++ b/apps/templates/index.html @@ -125,9 +125,9 @@ {% for data in week_asset_hot_ten %}
-
+
- {{ data.asset }} + {{ data.asset }}
{{ data.total }}次
@@ -213,9 +213,9 @@ {% for data in week_user_hot_ten %}
-
+
- {{ data.user }} + {{ data.user }}
{{ data.total }}次
@@ -245,7 +245,8 @@ $(document).ready(function(){ $('#show').click(function(){ $('#show').css('display', 'none'); $('#more').css('display', 'block'); - }) + }); + $("[data-toggle='tooltip']").tooltip(); }); require.config({ paths: {