From: Barış Metin Date: Mon, 8 Jun 2009 10:50:22 +0000 (+0000) Subject: rename "Slices" to "My Slices" for users as the link will show user's X-Git-Tag: PLEWWW-4.3-19~16 X-Git-Url: http://git.onelab.eu/?p=plewww.git;a=commitdiff_plain;h=828e544d6ccf44dd4116bb55afabb14f83ea8bd9 rename "Slices" to "My Slices" for users as the link will show user's slices, akin to "My Site" and "My Site Nodes". --- diff --git a/modules/planetlab.module b/modules/planetlab.module index 37de485..080e8b9 100644 --- a/modules/planetlab.module +++ b/modules/planetlab.module @@ -189,7 +189,11 @@ function planetlab_block($op = 'list', $delta = 0, $edit = array()) { //////////////////// Slices $bullet_item = ''; //if( !( plc_is_tech() && ! plc_is_user() && ! plc_is_pi() && ! plc_is_admin() ) ) - $bullet_item .= href(l_slices(),"Slices"); + if (plc_is_admin()) { + $bullet_item .= href(l_slices(),"Slices"); + } else { + $bullet_item .= href(l_slices(),"My Slices"); + } $bullet_item .= ul_start(); if (plc_is_admin()) $bullet_item .= leaf ( href(l_slices_site(plc_my_site_id()), 'My Site Slices'));