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

Annotation of /rpms/smeserver-shared-folders/contribs7/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)
Fri Aug 24 15:37:54 2012 UTC (12 years, 3 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-shared-folders-0_1-77_el4_sme, smeserver-shared-folders-0_1-75_el4_sme, smeserver-shared-folders-0_1-76_el4_sme, smeserver-shared-folders-0_1-79_el4_sme, smeserver-shared-folders-0_1-78_el4_sme, HEAD
* Fri Aug 24 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-75.sme
- add possibility to hide shares and to mark them non removable

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     . '&nbsp;';
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