summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0de467c)
raw | patch | inline | side by side (parent: 0de467c)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 29 Jul 2001 04:07:37 +0000 (04:07 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 29 Jul 2001 04:07:37 +0000 (04:07 +0000) |
template.
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@126 57a73879-2fb5-44c3-a270-3262357dd7e2
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@126 57a73879-2fb5-44c3-a270-3262357dd7e2
index 6ba4dd60af35b9a0094a7a69dcd28bdd48973a81..c6c76be05fad4fc213ee8289f798346067ffff11 100644 (file)
-<!-- $Id: file.index,v 1.1 2001-07-23 23:29:10 richard Exp $-->
+<!-- $Id: file.index,v 1.2 2001-07-29 04:07:37 richard Exp $-->
<tr>
<property name="name">
<td><display call="link('name')"></td>
diff --git a/roundup/templates/classic/html/issue.filter b/roundup/templates/classic/html/issue.filter
index 9d624c110ccb6d284a7db1be757091cf1a559be7..c032c718dd0556d5a2a234a83228a3acf9c234e2 100644 (file)
-<!-- $Id: issue.filter,v 1.1 2001-07-23 23:29:10 richard Exp $-->
+<!-- $Id: issue.filter,v 1.2 2001-07-29 04:07:37 richard Exp $-->
<property name="title">
<tr><th width="1%" align="right" class="location-bar">Title</th>
<td><display call="field('title')"></td></tr>
diff --git a/roundup/templates/classic/html/issue.index b/roundup/templates/classic/html/issue.index
index 7fff441e8d1a86f37c77e563f3ed9a19ecbacce1..60bc4d7e3b785feb39d4c3389b5d3297b61da114 100644 (file)
-<!-- $Id: issue.index,v 1.1 2001-07-23 23:29:10 richard Exp $-->
-<tr>
+<!-- $Id: issue.index,v 1.2 2001-07-29 04:07:37 richard Exp $-->
+<tr class="row-<display call="plain('status')">">
+ <property name="id">
+ <td valign="top"><display call="plain('id')"></td>
+ </property>
<property name="activity">
<td valign="top"><display call="reldate('activity', pretty=1)"></td>
</property>
<property name="priority">
<td valign="top"><display call="plain('priority')"></td>
</property>
+ <property name="title">
+ <td valign="top"><display call="link('title')"></td>
+ </property>
<property name="status">
<td valign="top"><display call="plain('status')"></td>
</property>
- <property name="title">
- <td valign="top"><display call="link('title')"></td>
+ <property name="assignedto">
+ <td valign="top"><display call="link('assignedto')"></td>
</property>
</tr>
index f7109f922184f7107db54866b30bfb81c9ea8efa..c1f1ea9c1f991bab28f089ade40750f125415103 100644 (file)
-<!-- $Id: issue.item,v 1.1 2001-07-23 23:29:10 richard Exp $-->
+<!-- $Id: issue.item,v 1.2 2001-07-29 04:07:37 richard Exp $-->
<table border=0 cellspacing=0 cellpadding=2>
<tr class="strong-header">
index 1934b35372569bc9f1a0cadde13d3ad914782633..b99556a3ef7c672489d274750e9c2915717f6028 100644 (file)
-<!-- $Id: msg.index,v 1.1 2001-07-23 23:29:10 richard Exp $-->
+<!-- $Id: msg.index,v 1.2 2001-07-29 04:07:37 richard Exp $-->
<tr>
<property name="date">
<td><display call="link('date')"></td>
index 7145e434c59d910260a10d89789228f393409816..676147bbb3d99c60ecd116e09cef807c9f11f9b2 100644 (file)
-<!-- $Id: msg.item,v 1.1 2001-07-23 23:29:10 richard Exp $-->
+<!-- $Id: msg.item,v 1.2 2001-07-29 04:07:37 richard Exp $-->
<table border=0 cellspacing=0 cellpadding=2>
<tr class="strong-header">
index 2316c7c886a04012a1ac8e85af16184c512198f3..d73471ae8252530dab5b95cd1aaae92a43912173 100644 (file)
}
.location-bar {
- background-color: #efefef;
+ background-color: #44bb66;
+ color: #ffffff;
border: none;
}
}
.list-header {
- background-color: #c0c0c0;
+ background-color: #aaccff;
+ color: #000000;
border: none;
}
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;
index 685fde8a0a0d7586520446f4d56ace4e05c5b8ab..4ad0177a6d6f7a78e18c2709c6ba88b7458fd78c 100644 (file)
-<!-- $Id: user.index,v 1.1 2001-07-23 23:29:10 richard Exp $-->
+<!-- $Id: user.index,v 1.2 2001-07-29 04:07:37 richard Exp $-->
<tr>
<property name="username">
<td><display call="link('username')"></td>
index 5c755ac3b2aa75767f27c2292a5c069f3ed129d4..1af6823f0b980e8e89e517d560d54761de64e4e3 100644 (file)
-<!-- $Id: user.item,v 1.1 2001-07-23 23:29:10 richard Exp $-->
+<!-- $Id: user.item,v 1.2 2001-07-29 04:07:37 richard Exp $-->
<table border=0 cellspacing=0 cellpadding=2>
<tr class="strong-header">
index d7a4698ab488b79e90828f7dd1bad19bb4ac8939..8db7082053b92002d4daec0d3a2a3ae3bcecdb07 100644 (file)
-# $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
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 = '<div class="system-msg">%s</div>'%message
+ else:
+ message = ''
+ style = open(os.path.join(self.TEMPLATES, 'style.css')).read()
+ userid = self.db.user.lookup(self.user)
+ self.write('''<html><head>
+<title>%s</title>
+<style type="text/css">%s</style>
+</head>
+<body bgcolor=#ffffff>
+%s
+<table width=100%% border=0 cellspacing=0 cellpadding=2>
+<tr class="location-bar"><td><big><strong>%s</strong></big>
+(login: <a href="user%s">%s</a>)</td></tr>
+</table>
+'''%(title, style, message, title, userid, self.user))
class MailGW(mailgw.MailGW):
''' derives basic mail gateway implementation from the standard module,
#
# $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.
#