From mboxrd@z Thu Jan 1 00:00:00 1970 From: kupcevic@sourceware.org Date: 14 Oct 2006 20:01:53 -0000 Subject: [Cluster-devel] conga/luci site/luci/Extensions/StorageReport. ... Message-ID: <20061014200153.18073.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: conga Changes by: kupcevic at sourceware.org 2006-10-14 20:01:52 Modified files: luci/site/luci/Extensions: StorageReport.py luci/storage : form-macros Log message: luci storage: since cylinders work properly in VGs only, don't display them, by default, at other mappers' views Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/StorageReport.py.diff?cvsroot=cluster&r1=1.13&r2=1.14 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/form-macros.diff?cvsroot=cluster&r1=1.11&r2=1.12 --- conga/luci/site/luci/Extensions/StorageReport.py 2006/10/09 19:11:59 1.13 +++ conga/luci/site/luci/Extensions/StorageReport.py 2006/10/14 20:01:52 1.14 @@ -481,6 +481,15 @@ if type == MAPPER_VG_TYPE: link_snapshots(mapper_ret) + # cylinders work properly for VGs only, for now + mapper_ret['graphical_view'] = type == MAPPER_VG_TYPE + if mapper_ret['graphical_view']: + mapper_ret['mappings-view_css_classnames'] = {'graphical_view' : 'visible', + 'textual_view' : 'invisible'} + else: + mapper_ret['mappings-view_css_classnames'] = {'graphical_view' : 'invisible', + 'textual_view' : 'visible'} + mapper_ret['need_apply_button'] = mutable_props(mapper_ret['props']) return mapper_ret --- conga/luci/storage/form-macros 2006/10/09 19:11:59 1.11 +++ conga/luci/storage/form-macros 2006/10/14 20:01:52 1.12 @@ -433,7 +433,8 @@
  • - +
  • @@ -504,12 +505,14 @@ Graphical View - + -
    @@ -522,7 +525,8 @@ height string:180">
    -