From: <rm...@hy...> - 2009-03-18 21:11:56
|
Author: rmorgan Date: 2009-03-18 14:11:49 -0700 (Wed, 18 Mar 2009) New Revision: 12808 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=12808 Modified: trunk/ui_plugins/opcenter/app/DashboardController.groovy Log: Center the Priority column to make it easier to read. Another option here is to use the same style as alert center, where an icon + Low, Med, High is used. [HHQ-2947] Modified: trunk/ui_plugins/opcenter/app/DashboardController.groovy =================================================================== --- trunk/ui_plugins/opcenter/app/DashboardController.groovy 2009-03-18 20:50:00 UTC (rev 12807) +++ trunk/ui_plugins/opcenter/app/DashboardController.groovy 2009-03-18 21:11:49 UTC (rev 12808) @@ -502,7 +502,13 @@ [field: priorityCol, width: '3%', nowrap: false, - label: { if (it.Priority) { PRIORITIES[it.Priority] } } ], + label: { + if (it.Priority) { + return "<div style=\"text-align:center\">${PRIORITIES[it.Priority]}</div>" + } else { + return "" + } + }], [field: statusTypeCol, width: '5%', nowrap: false, |