Skip to content

Commit f3a7009

Browse files
author
Richard Jones
committed
Fixed the classic template so it's more like the "advertised" Roundup template.
1 parent d65e357 commit f3a7009

File tree

10 files changed

+100
-17
lines changed

10 files changed

+100
-17
lines changed

roundup/templates/classic/html/file.index

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $Id: file.index,v 1.1 2001-07-23 23:29:10 richard Exp $-->
1+
<!-- $Id: file.index,v 1.2 2001-07-29 04:07:37 richard Exp $-->
22
<tr>
33
<property name="name">
44
<td><display call="link('name')"></td>

roundup/templates/classic/html/issue.filter

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $Id: issue.filter,v 1.1 2001-07-23 23:29:10 richard Exp $-->
1+
<!-- $Id: issue.filter,v 1.2 2001-07-29 04:07:37 richard Exp $-->
22
<property name="title">
33
<tr><th width="1%" align="right" class="location-bar">Title</th>
44
<td><display call="field('title')"></td></tr>
Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
1-
<!-- $Id: issue.index,v 1.1 2001-07-23 23:29:10 richard Exp $-->
2-
<tr>
1+
<!-- $Id: issue.index,v 1.2 2001-07-29 04:07:37 richard Exp $-->
2+
<tr class="row-<display call="plain('status')">">
3+
<property name="id">
4+
<td valign="top"><display call="plain('id')"></td>
5+
</property>
36
<property name="activity">
47
<td valign="top"><display call="reldate('activity', pretty=1)"></td>
58
</property>
69
<property name="priority">
710
<td valign="top"><display call="plain('priority')"></td>
811
</property>
12+
<property name="title">
13+
<td valign="top"><display call="link('title')"></td>
14+
</property>
915
<property name="status">
1016
<td valign="top"><display call="plain('status')"></td>
1117
</property>
12-
<property name="title">
13-
<td valign="top"><display call="link('title')"></td>
18+
<property name="assignedto">
19+
<td valign="top"><display call="link('assignedto')"></td>
1420
</property>
1521
</tr>

roundup/templates/classic/html/issue.item

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $Id: issue.item,v 1.1 2001-07-23 23:29:10 richard Exp $-->
1+
<!-- $Id: issue.item,v 1.2 2001-07-29 04:07:37 richard Exp $-->
22
<table border=0 cellspacing=0 cellpadding=2>
33

44
<tr class="strong-header">

roundup/templates/classic/html/msg.index

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $Id: msg.index,v 1.1 2001-07-23 23:29:10 richard Exp $-->
1+
<!-- $Id: msg.index,v 1.2 2001-07-29 04:07:37 richard Exp $-->
22
<tr>
33
<property name="date">
44
<td><display call="link('date')"></td>

roundup/templates/classic/html/msg.item

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $Id: msg.item,v 1.1 2001-07-23 23:29:10 richard Exp $-->
1+
<!-- $Id: msg.item,v 1.2 2001-07-29 04:07:37 richard Exp $-->
22
<table border=0 cellspacing=0 cellpadding=2>
33

44
<tr class="strong-header">

roundup/templates/classic/html/style.css

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ th {
6666
}
6767

6868
.location-bar {
69-
background-color: #efefef;
69+
background-color: #44bb66;
70+
color: #ffffff;
7071
border: none;
7172
}
7273

@@ -79,7 +80,8 @@ th {
7980
}
8081

8182
.list-header {
82-
background-color: #c0c0c0;
83+
background-color: #aaccff;
84+
color: #000000;
8385
border: none;
8486
}
8587

@@ -105,11 +107,52 @@ th {
105107
border: none;
106108
}
107109

108-
.section-bar {
109-
background-color: #c0c0c0;
110+
.row-unread {
111+
background-color: #ffddd9;
110112
border: none;
111113
}
112114

115+
.row-in-progress {
116+
background-color: #3ccc50;
117+
border: none;
118+
}
119+
120+
.row-resolved {
121+
background-color: #aaccff;
122+
border: none;
123+
}
124+
125+
.row-done-cbb {
126+
background-color: #aaccff;
127+
border: none;
128+
}
129+
130+
.row-testing {
131+
background-color: #c6ddff;
132+
border: none;
133+
}
134+
135+
.row-need-eg {
136+
background-color: #ffc7c0;
137+
border: none;
138+
}
139+
140+
.row-chatting {
141+
background-color: #ffe3c0;
142+
border: none;
143+
}
144+
145+
.row-deferred {
146+
background-color: #cccccc;
147+
border: none;
148+
}
149+
150+
.section-bar {
151+
background-color: #707070;
152+
color: #ffffff;
153+
border: 1px solid #404040;
154+
}
155+
113156
.system-msg {
114157
font-family: Verdana, Helvetica, sans-serif;
115158
font-size: 10pt;

roundup/templates/classic/html/user.index

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $Id: user.index,v 1.1 2001-07-23 23:29:10 richard Exp $-->
1+
<!-- $Id: user.index,v 1.2 2001-07-29 04:07:37 richard Exp $-->
22
<tr>
33
<property name="username">
44
<td><display call="link('username')"></td>

roundup/templates/classic/html/user.item

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $Id: user.item,v 1.1 2001-07-23 23:29:10 richard Exp $-->
1+
<!-- $Id: user.item,v 1.2 2001-07-29 04:07:37 richard Exp $-->
22
<table border=0 cellspacing=0 cellpadding=2>
33

44
<tr class="strong-header">

roundup/templates/classic/interfaces.py

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# $Id: interfaces.py,v 1.1 2001-07-23 23:28:43 richard Exp $
1+
# $Id: interfaces.py,v 1.2 2001-07-29 04:07:37 richard Exp $
2+
3+
import urlparse, os
24

35
import instance_config
46
from roundup import cgi_client, mailgw
@@ -8,7 +10,36 @@ class Client(cgi_client.Client):
810
with any specific extensions
911
'''
1012
TEMPLATES = instance_config.TEMPLATES
11-
pass
13+
14+
default_index_sort = ['-activity']
15+
default_index_group = ['priority']
16+
default_index_filter = []
17+
default_index_columns = ['id','activity','title','status','assignedto']
18+
default_index_filterspec = {'status': ['1', '2', '3', '4', '5', '6', '7']}
19+
20+
def pagehead(self, title, message=None):
21+
url = self.env['SCRIPT_NAME'] + '/' #self.env.get('PATH_INFO', '/')
22+
machine = self.env['SERVER_NAME']
23+
port = self.env['SERVER_PORT']
24+
if port != '80': machine = machine + ':' + port
25+
base = urlparse.urlunparse(('http', machine, url, None, None, None))
26+
if message is not None:
27+
message = '<div class="system-msg">%s</div>'%message
28+
else:
29+
message = ''
30+
style = open(os.path.join(self.TEMPLATES, 'style.css')).read()
31+
userid = self.db.user.lookup(self.user)
32+
self.write('''<html><head>
33+
<title>%s</title>
34+
<style type="text/css">%s</style>
35+
</head>
36+
<body bgcolor=#ffffff>
37+
%s
38+
<table width=100%% border=0 cellspacing=0 cellpadding=2>
39+
<tr class="location-bar"><td><big><strong>%s</strong></big>
40+
(login: <a href="user%s">%s</a>)</td></tr>
41+
</table>
42+
'''%(title, style, message, title, userid, self.user))
1243

1344
class MailGW(mailgw.MailGW):
1445
''' derives basic mail gateway implementation from the standard module,
@@ -20,6 +51,9 @@ class MailGW(mailgw.MailGW):
2051

2152
#
2253
# $Log: not supported by cvs2svn $
54+
# Revision 1.1 2001/07/23 23:28:43 richard
55+
# Adding the classic template
56+
#
2357
# Revision 1.1 2001/07/23 23:16:01 richard
2458
# Split off the interfaces (CGI, mailgw) into a separate file from the DB stuff.
2559
#

0 commit comments

Comments
 (0)