changeset 120:e8087fc26fee

Fixed the classic template so it's more like the "advertised" Roundup template.
author Richard Jones <richard@users.sourceforge.net>
date Sun, 29 Jul 2001 04:07:37 +0000
parents ad64dade1769
children 3672eb16a274
files roundup/templates/classic/html/file.index roundup/templates/classic/html/issue.filter roundup/templates/classic/html/issue.index roundup/templates/classic/html/issue.item roundup/templates/classic/html/msg.index roundup/templates/classic/html/msg.item roundup/templates/classic/html/style.css roundup/templates/classic/html/user.index roundup/templates/classic/html/user.item roundup/templates/classic/interfaces.py
diffstat 10 files changed, 100 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/templates/classic/html/file.index	Sun Jul 29 04:06:42 2001 +0000
+++ b/roundup/templates/classic/html/file.index	Sun Jul 29 04:07:37 2001 +0000
@@ -1,4 +1,4 @@
-<!-- $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>
--- a/roundup/templates/classic/html/issue.filter	Sun Jul 29 04:06:42 2001 +0000
+++ b/roundup/templates/classic/html/issue.filter	Sun Jul 29 04:07:37 2001 +0000
@@ -1,4 +1,4 @@
-<!-- $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>
--- a/roundup/templates/classic/html/issue.index	Sun Jul 29 04:06:42 2001 +0000
+++ b/roundup/templates/classic/html/issue.index	Sun Jul 29 04:07:37 2001 +0000
@@ -1,15 +1,21 @@
-<!-- $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>
--- a/roundup/templates/classic/html/issue.item	Sun Jul 29 04:06:42 2001 +0000
+++ b/roundup/templates/classic/html/issue.item	Sun Jul 29 04:07:37 2001 +0000
@@ -1,4 +1,4 @@
-<!-- $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">
--- a/roundup/templates/classic/html/msg.index	Sun Jul 29 04:06:42 2001 +0000
+++ b/roundup/templates/classic/html/msg.index	Sun Jul 29 04:07:37 2001 +0000
@@ -1,4 +1,4 @@
-<!-- $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>
--- a/roundup/templates/classic/html/msg.item	Sun Jul 29 04:06:42 2001 +0000
+++ b/roundup/templates/classic/html/msg.item	Sun Jul 29 04:07:37 2001 +0000
@@ -1,4 +1,4 @@
-<!-- $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">
--- a/roundup/templates/classic/html/style.css	Sun Jul 29 04:06:42 2001 +0000
+++ b/roundup/templates/classic/html/style.css	Sun Jul 29 04:07:37 2001 +0000
@@ -66,7 +66,8 @@
 }
 
 .location-bar {
-  background-color: #efefef;
+  background-color: #44bb66;
+  color: #ffffff;
   border: none;
 }
 
@@ -79,7 +80,8 @@
 }
 
 .list-header {
-  background-color: #c0c0c0;
+  background-color: #aaccff;
+  color: #000000;
   border: none;
 }
 
@@ -105,9 +107,50 @@
   border: none;
 }
 
+.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: #c0c0c0;
-  border: none;
+  background-color: #707070;
+  color: #ffffff;
+  border: 1px solid #404040;
 }
 
 .system-msg {
--- a/roundup/templates/classic/html/user.index	Sun Jul 29 04:06:42 2001 +0000
+++ b/roundup/templates/classic/html/user.index	Sun Jul 29 04:07:37 2001 +0000
@@ -1,4 +1,4 @@
-<!-- $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>
--- a/roundup/templates/classic/html/user.item	Sun Jul 29 04:06:42 2001 +0000
+++ b/roundup/templates/classic/html/user.item	Sun Jul 29 04:07:37 2001 +0000
@@ -1,4 +1,4 @@
-<!-- $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">
--- a/roundup/templates/classic/interfaces.py	Sun Jul 29 04:06:42 2001 +0000
+++ b/roundup/templates/classic/interfaces.py	Sun Jul 29 04:07:37 2001 +0000
@@ -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 @@
         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, 
@@ -20,6 +51,9 @@
 
 #
 # $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.
 #

Roundup Issue Tracker: http://roundup-tracker.org/