/[smecontribs]/rpms/smeserver-shared-folders/contribs9/smeserver-shared-folders-0.1-hide_and_non_removable.patch
ViewVC logotype

Annotation of /rpms/smeserver-shared-folders/contribs9/smeserver-shared-folders-0.1-hide_and_non_removable.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Sun Oct 13 15:04:38 2013 UTC (11 years, 1 month ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-shared-folders-0_1-83_el6_sme, smeserver-shared-folders-0_1-81, smeserver-shared-folders-0_1-82_el6_sme, smeserver-shared-folders-0_1-80_el6
Initial import

1 vip-ire 1.1 diff -Nur smeserver-shared-folders-0.1/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/shares.pm smeserver-shared-folders-0.1_mod/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/shares.pm
2     --- smeserver-shared-folders-0.1/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/shares.pm 2012-08-24 11:20:32.827610656 +0200
3     +++ smeserver-shared-folders-0.1_mod/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/shares.pm 2012-08-24 11:20:14.042552522 +0200
4     @@ -84,6 +84,8 @@
5     foreach my $share (@shares) {
6     my $sharename = $share->key();
7     my $sharedesc = $share->prop('Name');
8     + next if (($share->prop('Hide') || 'no') eq 'yes');
9     + my $removable = $share->prop('Removable') || 'yes';
10    
11     my $href = "shares?page=;page_stack=;wherenext=";
12    
13     @@ -93,8 +95,8 @@
14     my $actionPerm = $q->a({href => "${href}Permissions&name=$sharename"},$perm)
15     . ' ';
16    
17     - my $actionRemove .= $q->a({href => "${href}Remove&name=$sharename&description=$sharedesc"}, $remove)
18     - . '&nbsp';
19     + my $actionRemove .= ($removable ne 'no') ? $q->a({href => "${href}Remove&name=$sharename&description=$sharedesc"}, $remove)
20     + . '&nbsp' : '';
21    
22     print $q->Tr (
23     esmith::cgi::genSmallCell($q, $sharename,"normal"),

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed