From e53124a7cb25cb56bc2ff1bba16ab59884be123e Mon Sep 17 00:00:00 2001 From: scrat Date: Sat, 21 Jul 2007 11:59:38 +0000 Subject: [PATCH] 1.) changed source code in order to comply with the Python Style Guide (PEP-8, Version 56036), with exception of method names which are in mixedCase style at the moment. 2.) pages are now being built using fragments: |- header.html |- top.html |- navigation.html |- footer.html 3.) the job list is now implemented as a table, using hyperlinks to select a job 4.) hovering over a table row now displays a yellow bar that simplifies navigation inside the table git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1837 fd906abe-77d9-0310-91a1-e0d9ade77398 --- agent/ui/joblist.txt | 8 +- agent/ui/resources/custom.css | 4 + agent/ui/templates/agent.html | 79 +------ agent/ui/templates/jobdetail.html | 110 +++------- agent/ui/templates/joblisting.html | 111 +++------- agent/ui/templates/mail.html | 74 +------ agent/ui/web.py | 332 ++++++++++++++++------------- 7 files changed, 266 insertions(+), 452 deletions(-) diff --git a/agent/ui/joblist.txt b/agent/ui/joblist.txt index ae42774..cab2483 100644 --- a/agent/ui/joblist.txt +++ b/agent/ui/joblist.txt @@ -1,4 +1,4 @@ -FileSysCont_1234;C:\Documents;*.doc;daily;transfer(http:loops.sampleserver.de) -MailCrawl_2121;Outlook(Account_Root);daily;transfer(http:loops.sampleserver.de) -MailCrawl_4040;Outlook(Subj:Update);20s;transfer(http:loops.sampleserver.de) -FileSysCont_8797;C:\Tmp;size<100kByte;transfer(http:loops.sampleserver.de) \ No newline at end of file +FileSysCont_1234;Running;daily;*.doc;C:\Documents;size<100kByte;transfer(http:loops.sampleserver.de) +MailCrawl_2121;Running;daily;Subject:Update;Outlook;Account=Account_Root;transfer(http:loops.sampleserver.de) +MailCrawl_4040;Paused;20s;Subject:Update;Outlook;Account=Account_Root;transfer(http:loops.sampleserver.de) +FileSysCont_8797;Stopped;10m;*.jpg;C:\Tmp;size<100kByte;transfer(http:loops.sampleserver.de) \ No newline at end of file diff --git a/agent/ui/resources/custom.css b/agent/ui/resources/custom.css index 05f3f75..db03dc5 100644 --- a/agent/ui/resources/custom.css +++ b/agent/ui/resources/custom.css @@ -22,3 +22,7 @@ a { height: 75px;*/ } +table.listing tr:hover { + background-color: #FEFE82; +} + diff --git a/agent/ui/templates/agent.html b/agent/ui/templates/agent.html index 6382ff7..060d649 100644 --- a/agent/ui/templates/agent.html +++ b/agent/ui/templates/agent.html @@ -4,74 +4,18 @@ - - loops - - - - - - - - - - - - - - - - - - - +
-
-
- -
-
+
+
+
- +
@@ -116,14 +60,7 @@
- diff --git a/agent/ui/templates/jobdetail.html b/agent/ui/templates/jobdetail.html index 51b28a9..70c298e 100644 --- a/agent/ui/templates/jobdetail.html +++ b/agent/ui/templates/jobdetail.html @@ -4,91 +4,29 @@ - - loops - - - - - - - - - - - - - - - - - - - +
-
-
- -
+