Disable wrap for dashboard columns
authorThierry Florac <thierry.florac@onf.fr>
Tue, 16 Jan 2018 15:25:25 +0100
changeset 329 f4566bf0c917
parent 328 3ae323f42a24
child 330 64a67d202ad4
Disable wrap for dashboard columns
src/pyams_content/root/zmi/__init__.py
src/pyams_content/shared/common/zmi/dashboard.py
--- a/src/pyams_content/root/zmi/__init__.py	Tue Jan 16 15:24:57 2018 +0100
+++ b/src/pyams_content/root/zmi/__init__.py	Tue Jan 16 15:25:25 2018 +0100
@@ -796,6 +796,7 @@
     """Shared tool dashboard content type column"""
 
     _header = _("Content")
+    cssClasses = {'td': 'nowrap'}
     weight = 1
 
     def getValue(self, obj):
--- a/src/pyams_content/shared/common/zmi/dashboard.py	Tue Jan 16 15:24:57 2018 +0100
+++ b/src/pyams_content/shared/common/zmi/dashboard.py	Tue Jan 16 15:25:25 2018 +0100
@@ -152,6 +152,7 @@
     """Shared tool dashboard status column"""
 
     _header = _("Status")
+    cssClasses = {'td': 'nowrap'}
     weight = 20
 
     def getValue(self, obj):
@@ -179,7 +180,7 @@
 
     _header = _("Status date")
     cssClasses = {'th': 'col-xs-hide col-sm-hide',
-                  'td': 'col-xs-hide col-sm-hide'}
+                  'td': 'col-xs-hide col-sm-hide nowrap'}
     weight = 21
 
     def getValue(self, obj):
@@ -211,7 +212,7 @@
 
     _header = _("Status principal")
     cssClasses = {'th': 'col-xs-hide',
-                  'td': 'col-xs-hide'}
+                  'td': 'col-xs-hide nowrap'}
     weight = 30
 
     def getValue(self, obj):
@@ -229,7 +230,7 @@
 
     _header = _("Owner")
     cssClasses = {'th': 'col-xs-hide',
-                  'td': 'col-xs-hide'}
+                  'td': 'col-xs-hide nowrap'}
     weight = 35
 
     def getValue(self, obj):
@@ -247,6 +248,7 @@
     """Shared tool dashboard modified column"""
 
     _header = _("Last modification")
+    cssClasses = {'td': 'nowrap'}
     weight = 40
 
     def getValue(self, obj):