From 70a6ddc8971a08b804c211a467c6cdcce9de8521 Mon Sep 17 00:00:00 2001 From: "xiaokong1937@gmail.com" <763691951@qq.com> Date: Tue, 27 Sep 2016 20:16:46 +0800 Subject: [PATCH 1/2] fix #27 --- apps/static/css/jumpserver.css | 21 +++++++++++ apps/templates/_head_css_js.html | 8 ----- apps/users/templates/users/user_list.html | 43 ++++++++++++----------- 3 files changed, 44 insertions(+), 28 deletions(-) diff --git a/apps/static/css/jumpserver.css b/apps/static/css/jumpserver.css index da3354188..c3459298f 100644 --- a/apps/static/css/jumpserver.css +++ b/apps/static/css/jumpserver.css @@ -78,4 +78,25 @@ th a { border-top: none !important; } +table.dataTable tbody > tr.selected, table.dataTable tbody > tr > .selected { + background-color: #1ab394; +} +table.dataTable tbody tr.selected a, +table.dataTable tbody th.selected a, +table.dataTable tbody td.selected a, +table.dataTable tbody tr.selected td i.text-navy, +table.dataTable tbody th.selected td i.text-navy, +table.dataTable tbody td.selected td i.text-navy +{ + color: white; +} + +div.dataTables_wrapper div.dataTables_filter, +.dataTables_length { + float: right !important; +} + +div.dataTables_wrapper div.dataTables_filter { + margin-left: 15px; +} diff --git a/apps/templates/_head_css_js.html b/apps/templates/_head_css_js.html index 0fc1ac92c..4bb984ae3 100644 --- a/apps/templates/_head_css_js.html +++ b/apps/templates/_head_css_js.html @@ -7,17 +7,9 @@ - - - - - - - - diff --git a/apps/users/templates/users/user_list.html b/apps/users/templates/users/user_list.html index a1369ee73..082debc2a 100644 --- a/apps/users/templates/users/user_list.html +++ b/apps/users/templates/users/user_list.html @@ -2,16 +2,14 @@ {% load i18n static %} {% get_current_language as LANGUAGE_CODE %} {% load common_tags %} -{% block content_left_head %} - {% trans "Create user" %} -{% endblock %} {% block table_search %}{% endblock %} {% block table_container %} +
- + | {% trans 'Name' %} | {% trans 'Username' %} | @@ -25,28 +23,31 @@
---|