Commits

Anonymous committed 6ca5a0b

New theme and some other changes

Comments (0)

Files changed (27)

cgi-bin/svntrac.cgi

 #!/usr/bin/env python
 #
-# Copyright (C) 2003 Xyche Software
-# Copyright (C) 2003 Jonas Borgström <jonas@xyche.com>
+# Copyright (C) 2003 Edgewall Software
+# Copyright (C) 2003 Jonas Borgström <jonas@edgewall.com>
 #
 # svntrac is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License as
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #
-# Author: Jonas Borgström <jonas@xyche.com>
+# Author: Jonas Borgström <jonas@edgewall.com>
 
 if __name__ == '__main__':
     import svntrac

cgi-bin/svntrac_auth.cgi

 #!/usr/bin/env python
 #
-# Copyright (C) 2003 Xyche Software
-# Copyright (C) 2003 Jonas Borgström <jonas@xyche.com>
+# Copyright (C) 2003 Edgewall Software
+# Copyright (C) 2003 Jonas Borgström <jonas@edgewall.com>
 #
 # svntrac is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License as
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #
-# Author: Jonas Borgström <jonas@xyche.com>
+# Author: Jonas Borgström <jonas@edgewall.com>
 
 import os
 

htdocs/navbar_gradient.png

Added
New image

htdocs/svntrac.css

   background-color: white;
 }
 
-body, table
-{
-  font-family: helvetica,arial;
-  /*font-size: 12pt;*/
-}
+body, p, td, div {
+  font: normal 12pt Verdana, Verdana, Helvetica, sans-serif;
+  color: black;
+} 
 
 pre.file-content
 {
 
 a:active { background-color: pink; }
 
-/*
- * Navigation bar
- */
-
-#page-topbar,.topbar
-{
-  font: 9px Verdana, Helvetica, sans-serif;
-  color: #ddd; 
-  background-color: #900;                   
-  border: solid 1px #600;
-  border-width: 0 0 1px 0;
-  white-space: nowrap;
-  padding: 0px 5px;
-}
-
-a.topbar-link
-{ 
-  color: #ccc; 
-  text-decoration: none;
-  font-weight: bold; 
-  padding: 0;
-}
-
 
 /*
  * Navigation bar
  */
 
-#page-navbar
-{
-  background-color: black;                   
-  border: solid 1px #900;
-  border-width: 1px 0 0 0;
+#page-topbar {
+  font: 9px Verdana, Helvetica, sans-serif;
+  color: #999; 
+  background-color: #eee;                   
+  border: solid 1px #999;
+  border-width: 0 0 1px 0;
+  white-space: nowrap;
   padding: 2px 5px;
+}
+
+a.topbar-link,a.topbar-link-active { 
+  font: 9px Verdana, Helvetica, sans-serif;
+  color: #666; 
+  text-decoration: none;
+  font-weight: bold; 
+  padding: 0px 5px;
+}
+
+a.topbar-link-active { 
+  background-color: #ccc;
+  color: #b00;
+}
+
+
+/*
+ * Navigation bar
+ */
+
+#page-navbar {
+  background-color: #900;                   
+  border: solid 1px #300;
+  border-width: 1px 0 1px 0;
+ 
+//  white-space: nowrap;
+  padding: 0px 5px;
+  margin: 0 0 0 0;
+}
+
+.navbar { 
+  color: white;
+  font: 11px Verdana, Helvetica, sans-serif;
+}
+
+a.navbar-link,a.navbar-link-active {
+  color: white;
+  text-decoration: none;
+  font-weight: bold; 
+  padding: 0 10px;
+  border-style: solid;
+  border-color: #fff;
+  border-width: 0 1px 0 0;
   margin: 0;
 }
 
-.navbar
-{ 
-  color: white;
-  font: 11px Verdana, Helvetica, sans-serif;
-  }
-
-a.navbar-link,a.navbar-link-active
-{
-  color: white;
-  text-decoration: none;
-  font-weight: bold; 
-  padding: 0 5px;
+a.navbar-link-active { 
+  background-color: #fff;                    
+  color: black;
 }
 
-a.navbar-link-active { background-color: #880000; }
+
+
+
 
 
 #page-header

htdocs/svntrac_logo.png

Added
New image

htdocs/svntrac_logo.xcf

Binary file added.

htdocs/topbar_gradient.png

Added
New image

scripts/initdb.py

 #!/usr/bin/env python
 #
-# Copyright (C) 2003 Xyche Software
-# Copyright (C) 2003 Jonas Borgström <jonas@xyche.com>
+# Copyright (C) 2003 Edgewall Software
+# Copyright (C) 2003 Jonas Borgström <jonas@edgewall.com>
 #
 # svntrac is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License as
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #
-# Author: Jonas Borgström <jonas@xyche.com>
+# Author: Jonas Borgström <jonas@edgewall.com>
 
 import sys
 import sqlite

svntrac/Browser.py

 # svntrac
 #
-# Copyright (C) 2003 Xyche Software
-# Copyright (C) 2003 Jonas Borgström <jonas@xyche.com>
+# Copyright (C) 2003 Edgewall Software
+# Copyright (C) 2003 Jonas Borgström <jonas@edgewall.com>
 #
 # svntrac is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License as
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #
-# Author: Jonas Borgström <jonas@xyche.com>
+# Author: Jonas Borgström <jonas@edgewall.com>
 
 import StringIO
 import string

svntrac/Changeset.py

 # svntrac
 #
-# Copyright (C) 2003 Xyche Software
-# Copyright (C) 2003 Jonas Borgström <jonas@xyche.com>
+# Copyright (C) 2003 Edgewall Software
+# Copyright (C) 2003 Jonas Borgström <jonas@edgewall.com>
 #
 # svntrac is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License as
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #
-# Author: Jonas Borgström <jonas@xyche.com>
+# Author: Jonas Borgström <jonas@edgewall.com>
 
 from util import *
 from Module import Module
 # svntrac
 #
-# Copyright (C) 2003 Xyche Software
-# Copyright (C) 2003 Jonas Borgström <jonas@xyche.com>
+# Copyright (C) 2003 Edgewall Software
+# Copyright (C) 2003 Jonas Borgström <jonas@edgewall.com>
 #
 # svntrac is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License as
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #
-# Author: Jonas Borgström <jonas@xyche.com>
+# Author: Jonas Borgström <jonas@edgewall.com>
 
 import sys
 import StringIO
 # svntrac
 #
-# Copyright (C) 2003 Xyche Software
-# Copyright (C) 2003 Jonas Borgström <jonas@xyche.com>
+# Copyright (C) 2003 Edgewall Software
+# Copyright (C) 2003 Jonas Borgström <jonas@edgewall.com>
 #
 # svntrac is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License as
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #
-# Author: Jonas Borgström <jonas@xyche.com>
+# Author: Jonas Borgström <jonas@edgewall.com>
 
 from util import *
 
 # svntrac
 #
-# Copyright (C) 2003 Xyche Software
-# Copyright (C) 2003 Jonas Borgström <jonas@xyche.com>
+# Copyright (C) 2003 Edgewall Software
+# Copyright (C) 2003 Jonas Borgström <jonas@edgewall.com>
 #
 # svntrac is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License as
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #
-# Author: Jonas Borgström <jonas@xyche.com>
+# Author: Jonas Borgström <jonas@edgewall.com>
 
 from util import *
 from Href import href

svntrac/Module.py

 # svntrac
 #
-# Copyright (C) 2003 Xyche Software
-# Copyright (C) 2003 Jonas Borgström <jonas@xyche.com>
+# Copyright (C) 2003 Edgewall Software
+# Copyright (C) 2003 Jonas Borgström <jonas@edgewall.com>
 #
 # svntrac is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License as
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #
-# Author: Jonas Borgström <jonas@xyche.com>
+# Author: Jonas Borgström <jonas@edgewall.com>
 
 import os
 import StringIO
 
         self.namespace = {}
         self.namespace['title'] = ''
-        self.namespace['svntrac_url'] = 'http://svntrac.xyche.com/'
+        self.namespace['svntrac_url'] = 'http://svntrac.edgewall.com/'
         self.namespace['htdocs_location'] = config['general']['htdocs_location']
         self.namespace['cgi_name'] = get_cgi_name()
 
         theme_dir = self.config['general']['theme_dir']
         tmpl_filename = os.path.join (theme_dir, self.template_name)
 
-        self.namespace['toolbar'] = self.toolbar.render ()
+        self.namespace['toolbar'] = self.toolbar.render (self._name)
 
         header_tmpl = os.path.join (theme_dir, 'header.template')
         footer_tmpl = os.path.join (theme_dir, 'footer.template')

svntrac/Report.py

 # svntrac
 #
-# Copyright (C) 2003 Xyche Software
-# Copyright (C) 2003 Jonas Borgström <jonas@xyche.com>
+# Copyright (C) 2003 Edgewall Software
+# Copyright (C) 2003 Jonas Borgström <jonas@edgewall.com>
 #
 # svntrac is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License as
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #
-# Author: Jonas Borgström <jonas@xyche.com>
+# Author: Jonas Borgström <jonas@edgewall.com>
 
 from util import *
 from Href import href

svntrac/Ticket.py

 # svntrac
 #
-# Copyright (C) 2003 Xyche Software
-# Copyright (C) 2003 Jonas Borgström <jonas@xyche.com>
+# Copyright (C) 2003 Edgewall Software
+# Copyright (C) 2003 Jonas Borgström <jonas@edgewall.com>
 #
 # svntrac is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License as
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #
-# Author: Jonas Borgström <jonas@xyche.com>
+# Author: Jonas Borgström <jonas@edgewall.com>
 
 import time
 import string

svntrac/Timeline.py

 # svntrac
 #
-# Copyright (C) 2003 Xyche Software
-# Copyright (C) 2003 Jonas Borgström <jonas@xyche.com>
+# Copyright (C) 2003 Edgewall Software
+# Copyright (C) 2003 Jonas Borgström <jonas@edgewall.com>
 #
 # svntrac is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License as
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #
-# Author: Jonas Borgström <jonas@xyche.com>
+# Author: Jonas Borgström <jonas@edgewall.com>
 
 from util import *
 from Href import href

svntrac/Toolbar.py

 # svntrac
 #
-# Copyright (C) 2003 Xyche Software
-# Copyright (C) 2003 Jonas Borgström <jonas@xyche.com>
+# Copyright (C) 2003 Edgewall Software
+# Copyright (C) 2003 Jonas Borgström <jonas@edgewall.com>
 #
 # svntrac is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License as
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #
-# Author: Jonas Borgström <jonas@xyche.com>
+# Author: Jonas Borgström <jonas@edgewall.com>
 
 import StringIO
 from util import *
     def enable_timeline (self, enable=1):
         self.timeline = enable
     
-    def render (self):
+    def render (self, mode):
+        def link(text, href, active=0):
+            if active:
+                return '<a href="%s" class="navbar-link-active">%s</a>' \
+                       % (href, text)
+            else:
+                return '<a href="%s" class="navbar-link">%s</a>' % (href, text)
+        
         out = StringIO.StringIO()
-        out.write ('<table width="100%" cellspacing="0" cellpadding="0"><tr><td class="navbar" bgcolor="black">')
-        out.write ('<a href="%s" class="navbar-link">wiki</a> |' % href.wiki())
+        out.write ('<table width="100%" cellspacing="0" cellpadding="0" id="page-navbar" cellpadding="10" bgcolor="black" background="/svntraccommon/navbar_gradient.png"><tr><td class="navbar">')
+        out.write (link('Wiki', href.wiki(), mode == 'wiki'))
 
         if perm.has_permission (perm.BROWSER_VIEW):
-            out.write ('<a href="%s" class="navbar-link">browse</a> |'
-                       % href.browser(self.browser_path))
+            out.write (link('Browse', href.browser(self.browser_path),
+                            mode == 'browser'))
         if perm.has_permission (perm.TIMELINE_VIEW):
-            out.write ('<a href="%s" class="navbar-link">timeline</a> | '
-                       % href.timeline())
+            out.write (link('Timeline', href.timeline(), mode == 'timeline'))
             
         if perm.has_permission (perm.REPORT_VIEW):
-            out.write ('<a href="%s" class="navbar-link">reports</a> |' % href.report())
+            out.write (link('Reports', href.report(), mode == 'report'))
         
         if perm.has_permission (perm.TICKET_CREATE):
-            out.write ('<a href="%s" class="navbar-link">new ticket</a> |' % href.newticket())
+            out.write (link('New Ticket', href.newticket(),
+                            mode == 'newticket'))
 
-        if self.log:
-            out.write ('<a href="%s" class="navbar-link">log</a> |'
-                       % href.log(self.log_path))
-        if self.changeset:
-            out.write ('<a href="%s" class="navbar-link">change set</a> |'
-                       % href.changeset(self.changeset_rev))
-            
-        out.write ('</td><td align="right" class="navbar" bgcolor="black">')
+        out.write ('</td><td align="right" class="navbar">')
         authname = get_authname ()        
         if authname == 'anonymous':
-            out.write ('<a href="%s" class="navbar-link">login</a>' % href.login())
+            out.write (link('Login', href.login()))
         else:
-            out.write ('logged in as %s | <a href="%s" class="navbar-link">logout</a>' % (authname, href.logout()))
+            out.write ('logged in as %s |' % authname)
+            out.write (link('Logout', href.logout()))
         out.write ('</td>')
         out.write ('</td></tr></table>')
         return out.getvalue()
 # svntrac
 #
-# Copyright (C) 2003 Xyche Software
-# Copyright (C) 2003 Jonas Borgström <jonas@xyche.com>
+# Copyright (C) 2003 Edgewall Software
+# Copyright (C) 2003 Jonas Borgström <jonas@edgewall.com>
 #
 # svntrac is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License as
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #
-# Author: Jonas Borgström <jonas@xyche.com>
+# Author: Jonas Borgström <jonas@edgewall.com>
 
 import re
 import time

svntrac/__init__.py

 """
-Xyche Software svntrac
+Edgewall Software SVNTRAC
 
-U{http://svntrac.xyche.com/}
+U{http://svntrac.edgewall.com/}
 
-@author: Jonas Borgström <jonas@xyche.com>
+@author: Jonas Borgström <jonas@edgewall.com>
 """
 __docformat__ = 'epytext en'
 
-__url__ = 'http://svntrac.xyche.com/'
-__copyright__ = '(C) 2003 Xyche Software'
+__url__ = 'http://svntrac.edgewall.com/'
+__copyright__ = '(C) 2003 Edgewall Software'
 __license__ = 'GNU Public License'
 __version__ = '0.0.1'
 
 # svntrac
 #
-# Copyright (C) 2003 Xyche Software
-# Copyright (C) 2003 Jonas Borgström <jonas@xyche.com>
+# Copyright (C) 2003 Edgewall Software
+# Copyright (C) 2003 Jonas Borgström <jonas@edgewall.com>
 #
 # svntrac is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License as
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #
-# Author: Jonas Borgström <jonas@xyche.com>
+# Author: Jonas Borgström <jonas@edgewall.com>
 
 import os
 import Cookie
 # svntrac
 #
-# Copyright (C) 2003 Xyche Software
-# Copyright (C) 2003 Jonas Borgström <jonas@xyche.com>
+# Copyright (C) 2003 Edgewall Software
+# Copyright (C) 2003 Jonas Borgström <jonas@edgewall.com>
 #
 # svntrac is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License as
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #
-# Author: Jonas Borgström <jonas@xyche.com>
+# Author: Jonas Borgström <jonas@edgewall.com>
 
 import os
 import sqlite
 # svntrac
 #
-# Copyright (C) 2003 Xyche Software
-# Copyright (C) 2003 Jonas Borgström <jonas@xyche.com>
+# Copyright (C) 2003 Edgewall Software
+# Copyright (C) 2003 Jonas Borgström <jonas@edgewall.com>
 #
 # svntrac is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License as
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #
-# Author: Jonas Borgström <jonas@xyche.com>
+# Author: Jonas Borgström <jonas@edgewall.com>
 
 from exceptions import StandardError
 from auth import get_authname

svntrac/svntrac.py

 # svntrac
 #
-# Copyright (C) 2003 Xyche Software
-# Copyright (C) 2003 Jonas Borgström <jonas@xyche.com>
+# Copyright (C) 2003 Edgewall Software
+# Copyright (C) 2003 Jonas Borgström <jonas@edgewall.com>
 #
 # svntrac is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License as
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #
-# Author: Jonas Borgström <jonas@xyche.com>
+# Author: Jonas Borgström <jonas@edgewall.com>
 
 import os
 import sys
     module = __import__(module_name, globals(),  locals(), [])
     constructor = getattr(module, constructor_name)
     module = constructor(config, args, pool)
+    module._name = mode
 
     verify_authentication(args)
     cache_permissions()
 # svntrac
 #
-# Copyright (C) 2003 Xyche Software
-# Copyright (C) 2003 Jonas Borgström <jonas@xyche.com>
+# Copyright (C) 2003 Edgewall Software
+# Copyright (C) 2003 Jonas Borgström <jonas@edgewall.com>
 #
 # svntrac is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License as
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #
-# Author: Jonas Borgström <jonas@xyche.com>
+# Author: Jonas Borgström <jonas@edgewall.com>
 
 import sys
 import time

templates/footer.template

   <table id="page-footer" width="100%%" bgcolor="#eeeeee">
     <tr>
       <td align="left" class="footer">
-	Email: <a href="mailto:info@xyche.com">info@xyche.com</a>
+	Email: <a href="mailto:info@edgewall.com">info@edgewall.com</a>
 	<br />
-	  <a href="/contact/">Contact information</a>
+	  <a href="http://www.edgewall.com/contact/">Contact information</a>
       </td>
       <td align="right" class="footer">Copyright (c)2003 
-	<a href="http://www.xyche.com/">Xyche Software</a> . 
+	<a href="http://www.edgewall.com/">Edgewall Software</a> . 
 	All rights reserved.<br />
       </td>
     </tr>

templates/header.template

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>
 <head>
-<title>Xyche Software - svntrac - %(title)s</title>
+<title>Edgewall SVNTRAC - %(title)s</title>
 <link rel="stylesheet" type="text/css" href="%(htdocs_location)ssvntrac.css">
 </head>
 <body marginheight="0" marginwidth="0" rightmargin="0" leftmargin="0" 
 topmargin="0" bottommargin="0" link="#aa0000" alink="#cc0000" vlink="#880000">
     <div id="page-header">
-      <table bgcolor="#990000" id="page-topbar" border="0" 
+      <table bgcolor="#eeeeee" 
+	background="%(htdocs_location)stopbar_gradient.png" 
+	id="page-topbar" border="0" 
 	cellspacing="0" cellpadding="0" width="100%%">
 	  <tr>
 	    <td align="right" class="topbar">
-	      <a href="./press/" class="topbar-link">Press Center</a> |
-	      <a href="./company/" class="topbar-link">Company</a> |
-	      <a href="./contact/" class="topbar-link">Contact</a>
+	      <a href="http://www.edgewall.com/press/" class="topbar-link">Press Center</a> |
+	      <a href="http://www.edgewall.com/company/" class="topbar-link">Company</a> |
+	      <a href="http://www.edgewall.com/contact/" class="topbar-link">Contact</a>
 	    </td>
 	  </tr>
       </table>
       <table id="page-header" border="0" cellspacing="0" 
 	cellpadding="0" width="100%%">
 	  <tr>
-	    <td bgcolor="#880000" width="100%%" style="white-space:nowrap">
-	      <a href="http://svntrac.xyche.com/">
-		<img src="%(htdocs_location)stopheader-svntrac.png" 
-		  width="498" height="70" alt="svntrac" border="0" 
-		  hspace="0" vspace="0" /></a>
+	    <td bgcolor="white" width="100%%" style="white-space:nowrap">
+	      <a href="http://svntrac.edgewall.com/">
+		<img src="%(htdocs_location)ssvntrac_logo.png" 
+		  width="500" height="70" alt="svntrac" border="0" 
+		  hspace="0" vspace="0" />
+	      </a>
 	    </td>
 	  </tr>
       </table>