From cd1d690fd3bd339b71f53876452276e48186226a Mon Sep 17 00:00:00 2001 From: ibuler Date: Fri, 28 Jul 2017 21:52:43 +0800 Subject: [PATCH] =?UTF-8?q?[Bugfix]=20=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=BA=9B?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/assets/_asset_import_modal.html | 2 +- .../assets/templates/assets/asset_detail.html | 4 +- .../templates/assets/asset_group_detail.html | 112 +++++++----------- apps/assets/templates/assets/idc_assets.html | 69 ++++++----- apps/assets/views/asset.py | 5 +- apps/assets/views/group.py | 2 +- apps/users/templates/users/user_detail.html | 2 +- 7 files changed, 85 insertions(+), 111 deletions(-) diff --git a/apps/assets/templates/assets/_asset_import_modal.html b/apps/assets/templates/assets/_asset_import_modal.html index 8ef73e531..64f60863b 100644 --- a/apps/assets/templates/assets/_asset_import_modal.html +++ b/apps/assets/templates/assets/_asset_import_modal.html @@ -10,7 +10,7 @@ {% trans 'Download' %}
- + {% trans 'If set id, will use this id update asset existed' %} diff --git a/apps/assets/templates/assets/asset_detail.html b/apps/assets/templates/assets/asset_detail.html index 8cf0d9374..d4448ef43 100644 --- a/apps/assets/templates/assets/asset_detail.html +++ b/apps/assets/templates/assets/asset_detail.html @@ -243,7 +243,7 @@
- {% trans 'System users' %} + {% trans 'Push system users' %}
@@ -252,7 +252,7 @@ - + - + @@ -56,40 +56,11 @@ +
- {% trans 'Add asset to this group' %} -
-
-
diff --git a/apps/assets/templates/assets/asset_group_detail.html b/apps/assets/templates/assets/asset_group_detail.html index a764acc15..3d1b3b729 100644 --- a/apps/assets/templates/assets/asset_group_detail.html +++ b/apps/assets/templates/assets/asset_group_detail.html @@ -45,9 +45,9 @@ {% trans 'Hostname' %} {% trans 'IP' %} {% trans 'Port' %}{% trans 'Type' %}{% trans 'Type' %} {% trans 'Alive' %}{% trans 'Action' %}{% trans 'Action' %}
- - - - - - - - - - -
- -
- -
-
-
- - -
-
-
- {% trans 'Push system user to this group assets' %} + {% trans 'Push system users' %}
@@ -106,7 +77,7 @@ @@ -125,45 +96,28 @@ {% endblock %} {% block custom_foot_js %}
- +