From: cajus Date: Wed, 3 Mar 2010 10:27:44 +0000 (+0000) Subject: Fixed labeling X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=de01d11002e8cb88af4b24d4e7c390a0ebb9c3e2;p=gosa.git Fixed labeling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15896 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/html/images/label-new.png b/gosa-core/html/images/label-new.png new file mode 100644 index 000000000..dff21d7c8 Binary files /dev/null and b/gosa-core/html/images/label-new.png differ diff --git a/gosa-core/html/images/new.png b/gosa-core/html/images/new.png deleted file mode 100644 index dff21d7c8..000000000 Binary files a/gosa-core/html/images/new.png and /dev/null differ diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index 53d50519d..a1f6a3c80 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -1454,7 +1454,7 @@ class listing { if($restore){ $result.= "".image('images/lists/restore.png')." "._("Restore snapshots").""; }else{ - $result.= "".image('images/lists/restore_grey.png')." "._("Restore snapshots").""; + $result.= "".image('images/lists/restore-grey.png')." "._("Restore snapshots").""; } } @@ -1504,7 +1504,7 @@ class listing { if($this->snapshotHandler->hasSnapshots($dn)){ $result.= image('images/lists/restore.png', "listing_restore_$row", _("Restore snapshot")); } else { - $result.= image('images/lists/restore_grey.png'); + $result.= image('images/lists/restore-grey.png'); } } diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index 9ee6532c7..aeb543b7e 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -3557,6 +3557,8 @@ function image($path, $action= "", $title= "", $align= "middle") } else { die("Invalid label specified: $label\n"); } + + $path= preg_replace("/\[.*\]$/", "", $path); } // Non middle layout? diff --git a/gosa-core/plugins/admin/users/user-list.xml b/gosa-core/plugins/admin/users/user-list.xml index 6cc1dcbd8..6997ba743 100644 --- a/gosa-core/plugins/admin/users/user-list.xml +++ b/gosa-core/plugins/admin/users/user-list.xml @@ -91,14 +91,14 @@ new entry - plugins/users/images/select_user.png + plugins/users/images/select_user.png[new] new_template entry - plugins/users/images/select_template.png + plugins/users/images/select_template.png[new]