From 025e000c494b903ff14f740fac8187d8fcf1e72f Mon Sep 17 00:00:00 2001 From: richard Date: Sun, 29 Jul 2001 04:07:37 +0000 Subject: [PATCH] Fixed the classic template so it's more like the "advertised" Roundup template. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@126 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/templates/classic/html/file.index | 2 +- roundup/templates/classic/html/issue.filter | 2 +- roundup/templates/classic/html/issue.index | 14 ++++-- roundup/templates/classic/html/issue.item | 2 +- roundup/templates/classic/html/msg.index | 2 +- roundup/templates/classic/html/msg.item | 2 +- roundup/templates/classic/html/style.css | 51 +++++++++++++++++++-- roundup/templates/classic/html/user.index | 2 +- roundup/templates/classic/html/user.item | 2 +- roundup/templates/classic/interfaces.py | 38 ++++++++++++++- 10 files changed, 100 insertions(+), 17 deletions(-) diff --git a/roundup/templates/classic/html/file.index b/roundup/templates/classic/html/file.index index 6ba4dd6..c6c76be 100644 --- a/roundup/templates/classic/html/file.index +++ b/roundup/templates/classic/html/file.index @@ -1,4 +1,4 @@ - + diff --git a/roundup/templates/classic/html/issue.filter b/roundup/templates/classic/html/issue.filter index 9d624c1..c032c71 100644 --- a/roundup/templates/classic/html/issue.filter +++ b/roundup/templates/classic/html/issue.filter @@ -1,4 +1,4 @@ - + Title diff --git a/roundup/templates/classic/html/issue.index b/roundup/templates/classic/html/issue.index index 7fff441..60bc4d7 100644 --- a/roundup/templates/classic/html/issue.index +++ b/roundup/templates/classic/html/issue.index @@ -1,15 +1,21 @@ - - + +"> + + + + + + - - + + diff --git a/roundup/templates/classic/html/issue.item b/roundup/templates/classic/html/issue.item index f7109f9..c1f1ea9 100644 --- a/roundup/templates/classic/html/issue.item +++ b/roundup/templates/classic/html/issue.item @@ -1,4 +1,4 @@ - + diff --git a/roundup/templates/classic/html/msg.index b/roundup/templates/classic/html/msg.index index 1934b35..b99556a 100644 --- a/roundup/templates/classic/html/msg.index +++ b/roundup/templates/classic/html/msg.index @@ -1,4 +1,4 @@ - + diff --git a/roundup/templates/classic/html/msg.item b/roundup/templates/classic/html/msg.item index 7145e43..676147b 100644 --- a/roundup/templates/classic/html/msg.item +++ b/roundup/templates/classic/html/msg.item @@ -1,4 +1,4 @@ - +
diff --git a/roundup/templates/classic/html/style.css b/roundup/templates/classic/html/style.css index 2316c7c..d73471a 100644 --- a/roundup/templates/classic/html/style.css +++ b/roundup/templates/classic/html/style.css @@ -66,7 +66,8 @@ th { } .location-bar { - background-color: #efefef; + background-color: #44bb66; + color: #ffffff; border: none; } @@ -79,7 +80,8 @@ th { } .list-header { - background-color: #c0c0c0; + background-color: #aaccff; + color: #000000; border: none; } @@ -105,11 +107,52 @@ th { border: none; } -.section-bar { - background-color: #c0c0c0; +.row-unread { + background-color: #ffddd9; border: none; } +.row-in-progress { + background-color: #3ccc50; + border: none; +} + +.row-resolved { + background-color: #aaccff; + border: none; +} + +.row-done-cbb { + background-color: #aaccff; + border: none; +} + +.row-testing { + background-color: #c6ddff; + border: none; +} + +.row-need-eg { + background-color: #ffc7c0; + border: none; +} + +.row-chatting { + background-color: #ffe3c0; + border: none; +} + +.row-deferred { + background-color: #cccccc; + border: none; +} + +.section-bar { + background-color: #707070; + color: #ffffff; + border: 1px solid #404040; +} + .system-msg { font-family: Verdana, Helvetica, sans-serif; font-size: 10pt; diff --git a/roundup/templates/classic/html/user.index b/roundup/templates/classic/html/user.index index 685fde8..4ad0177 100644 --- a/roundup/templates/classic/html/user.index +++ b/roundup/templates/classic/html/user.index @@ -1,4 +1,4 @@ - + diff --git a/roundup/templates/classic/html/user.item b/roundup/templates/classic/html/user.item index 5c755ac..1af6823 100644 --- a/roundup/templates/classic/html/user.item +++ b/roundup/templates/classic/html/user.item @@ -1,4 +1,4 @@ - +
diff --git a/roundup/templates/classic/interfaces.py b/roundup/templates/classic/interfaces.py index d7a4698..8db7082 100644 --- a/roundup/templates/classic/interfaces.py +++ b/roundup/templates/classic/interfaces.py @@ -1,4 +1,6 @@ -# $Id: interfaces.py,v 1.1 2001-07-23 23:28:43 richard Exp $ +# $Id: interfaces.py,v 1.2 2001-07-29 04:07:37 richard Exp $ + +import urlparse, os import instance_config from roundup import cgi_client, mailgw @@ -8,7 +10,36 @@ class Client(cgi_client.Client): with any specific extensions ''' TEMPLATES = instance_config.TEMPLATES - pass + + default_index_sort = ['-activity'] + default_index_group = ['priority'] + default_index_filter = [] + default_index_columns = ['id','activity','title','status','assignedto'] + default_index_filterspec = {'status': ['1', '2', '3', '4', '5', '6', '7']} + + def pagehead(self, title, message=None): + url = self.env['SCRIPT_NAME'] + '/' #self.env.get('PATH_INFO', '/') + machine = self.env['SERVER_NAME'] + port = self.env['SERVER_PORT'] + if port != '80': machine = machine + ':' + port + base = urlparse.urlunparse(('http', machine, url, None, None, None)) + if message is not None: + message = '
%s
'%message + else: + message = '' + style = open(os.path.join(self.TEMPLATES, 'style.css')).read() + userid = self.db.user.lookup(self.user) + self.write(''' +%s + + + +%s +
+ +
%s +(login: %s)
+'''%(title, style, message, title, userid, self.user)) class MailGW(mailgw.MailGW): ''' derives basic mail gateway implementation from the standard module, @@ -20,6 +51,9 @@ class MailGW(mailgw.MailGW): # # $Log: not supported by cvs2svn $ +# Revision 1.1 2001/07/23 23:28:43 richard +# Adding the classic template +# # Revision 1.1 2001/07/23 23:16:01 richard # Split off the interfaces (CGI, mailgw) into a separate file from the DB stuff. # -- 2.30.2