BackupPC-users

[BackupPC-users] Little patches that maybe make BackupPC more user-friendly..

2009-05-15 06:57:20
Subject: [BackupPC-users] Little patches that maybe make BackupPC more user-friendly..
From: Mirco Piccin <pictux AT gmail DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>, "backuppc-devel AT lists.sourceforge DOT net" <backuppc-devel AT lists.sourceforge DOT net>
Date: Fri, 15 May 2009 12:51:11 +0200
Hi all,
i've done some little mods to my BackupPC 3.2.0 installations.
This allow to:
1. give fixed position to the Navigation Menu - always on left-top
(also when scrolling down page); it works with Firefox, Opera but not
with IE (that does not handle position:fixed style);
2. allow you to collapse menu entry (host, host list, server) - it
works with every browser;

To do that, i've:
a. modified /usr/share/backuppc/lib/BackupPC/CGI/Lib.pm
b. modifies /usr/share/backuppc/image/BackupPC_stnd.css
c. created the new utils.js file (that contains only 1 function, for
now) in /usr/share/backuppc/image/

In specific:
a. look at attached Lib.pm.patch for more information;  I've modified
the div management, and some subs. To apply this patch:
# patch  /usr/share/backuppc/lib/BackupPC/CGI/Lib.pm Lib.pm.patch

b. look at the BackupPC_stnd.css attached;  i've modified some
entries, and created a new one (div.logo_top);
 You need to replace the original file with this new one (of course,
make a backup of the original file)

c. look at the attached utils.js file; it must be copied into
/usr/share/backuppc/image/ folder (remember to chown correctly the
file).

I can't guarantee my work; anyway I've tested those mods with success.
The Lib.pm patch is done for BackupPC 3.2.0, but the specific
modifications work also with the previous release.
Feel free to report anything.

Mirco

TO DO:
1. make collapsable also the sections in the Summary pages.

Attachment: BackupPC_stnd.css
Description: Text Data

Attachment: utils.js
Description: JavaScript source

Attachment: Lib.pm.patch
Description: Binary data

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
<Prev in Thread] Current Thread [Next in Thread>