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

Contents 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.2 - (show annotations) (download)
Mon Nov 11 19:36:28 2013 UTC (11 years ago) by unnilennium
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
cleaning tree from patchs

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