Mailinglist Archive: yast-commit (723 mails)

< Previous Next >
[yast-commit] r47340 - in /branches/tmp/aschnell/part-redesign/storage/src: include/ep-hd.ycp modules/StorageFields.ycp
  • From: aschnell@xxxxxxxxxxxxxxxx
  • Date: Wed, 07 May 2008 08:17:51 -0000
  • Message-id: <20080507081751.7608229B1F@xxxxxxxxxxxxxxxx>
Author: aschnell
Date: Wed May 7 10:17:51 2008
New Revision: 47340

URL: http://svn.opensuse.org/viewcvs/yast?rev=47340&view=rev
Log:
- show disk label

Modified:
branches/tmp/aschnell/part-redesign/storage/src/include/ep-hd.ycp
branches/tmp/aschnell/part-redesign/storage/src/modules/StorageFields.ycp

Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-hd.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/include/ep-hd.ycp?rev=47340&r1=47339&r2=47340&view=diff
==============================================================================
--- branches/tmp/aschnell/part-redesign/storage/src/include/ep-hd.ycp (original)
+++ branches/tmp/aschnell/part-redesign/storage/src/include/ep-hd.ycp Wed May
7 10:17:51 2008
@@ -158,7 +158,7 @@

list<symbol> fields = StorageFields::Filter([ `device, `vendor, `model,
`size, `newline,
`bus, `bios_id,
`udev_path, `udev_id, `newline,
- `used_by ]);
+ `disk_label, `used_by ]);

UI::ReplaceWidget(`tab_panel,
`VBox(

Modified:
branches/tmp/aschnell/part-redesign/storage/src/modules/StorageFields.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/modules/StorageFields.ycp?rev=47340&r1=47339&r2=47340&view=diff
==============================================================================
--- branches/tmp/aschnell/part-redesign/storage/src/modules/StorageFields.ycp
(original)
+++ branches/tmp/aschnell/part-redesign/storage/src/modules/StorageFields.ycp
Wed May 7 10:17:51 2008
@@ -102,6 +102,11 @@
header = add(header, `Right(_("F")));
break;

+ case `fs_type:
+ // Column header, abbreviation for "Filesystem Type"
+ header = add(header, _("FS Type"));
+ break;
+
case `mount_point:
// Column header
header = add(header, _("Mount"));
@@ -152,6 +157,11 @@
header = add(header, _("BIOS ID"));
break;

+ case `disk_label:
+ // Column header
+ header = add(header, _("Disk Label"));
+ break;
+
case `lvm_metadata:
// Column header
header = add(header, _("Metadata"));
@@ -345,7 +355,7 @@

case `label:
{
- string value = part == nil ? "" : data["label"]:"";
+ string value = (part == nil) ? "" : data["label"]:"";
if (style == `table)
return value;
else
@@ -385,6 +395,15 @@
return sformat(_("BIOS ID: %1"), value) + "\n";
}

+ case `disk_label:
+ {
+ string value = (part == nil) ? toupper(data["label"]:"") : "";
+ if (style == `table)
+ return value;
+ else
+ return sformat(_("Disk Label: %1"), value) + "\n";
+ }
+
case `vendor:
{
string value = data["vendor"]:"";
@@ -514,7 +533,7 @@

term TableRow(list<symbol> fields, map disk, map part)
{
- string device = part == nil ? disk["device"]:"" : part["device"]:"";
+ string device = (part == nil) ? disk["device"]:"" : part["device"]:"";

term row = `item(`id(device));
foreach(symbol field, fields, {

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages