User: sits    
  Date: 08/06/21 03:55:57

  Modified:    lib/Codestriker/Http Response.pm UrlBuilder.pm
               .        codestriker.conf
  Added:       html     codestriker-bluish.css
  Log:
  * Added a new CSS file as a part of the distribution which provides a
    bluish scheme, called codestriker-bluish.css is the html directory.
    This CSS file can be set from within codestriker.conf and was
    contributed by Kannan Goundan <[EMAIL PROTECTED]>.
    The ability to easily change which CSS file to use was submitted by
    [EMAIL PROTECTED]
  
  
  
  Index: Response.pm
  ===================================================================
  RCS file: /cvsroot/codestriker/codestriker/lib/Codestriker/Http/Response.pm,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- Response.pm       14 Mar 2008 01:30:52 -0000      1.43
  +++ Response.pm       21 Jun 2008 10:55:56 -0000      1.44
  @@ -215,25 +215,31 @@
       $title = HTML::Entities::encode($title);
   
       # Generate the URL to the codestriker CSS file.
  -    my $codestriker_css;
  +    my $codestriker_css = $query->url();
       if (defined $Codestriker::codestriker_css &&
        $Codestriker::codestriker_css ne "") {
  -     $codestriker_css = $Codestriker::codestriker_css;
  +             if ($Codestriker::codestriker_css =~ /[\/\\]/o) {
  +                     # Assume CSS file is specified with absolute path.
  +                     $codestriker_css = $Codestriker::codestriker_css;
  +             } else {
  +                     # Assume CSS file is in case html directory, just under
  +                     # a different name.
  +                     $codestriker_css =~ 
s/\/.+?\/codestriker\.pl/\/codestrikerhtml\/$Codestriker::codestriker_css/;
  +             }
       } else {
  -     $codestriker_css = $query->url();
  -     $codestriker_css =~ 
s/\/[\w\-]+\/codestriker\.pl/\/codestrikerhtml\/codestriker\.css/;
  +     # Use the default CSS file.
  +     $codestriker_css =~ 
s/\/.+?\/codestriker\.pl/\/codestrikerhtml\/codestriker\.css/;
       }
   
  -    my $overlib_js = $codestriker_css;
  -    $overlib_js =~ s/codestriker.css/overlib.js/o;
  -    my $overlib_centerpopup_js = $codestriker_css;
  -    $overlib_centerpopup_js =~ s/codestriker.css/overlib_centerpopup.js/o;
  -    my $overlib_draggable_js = $codestriker_css;
  -    $overlib_draggable_js =~ s/codestriker.css/overlib_draggable.js/o;
  -    my $xbdhtml_js = $codestriker_css;
  -    $xbdhtml_js =~ s/codestriker.css/xbdhtml.js/o;
  -    my $codestriker_js = $codestriker_css;
  -    $codestriker_js =~ s/codestriker.css/codestriker.js/o;
  +    
  +    my $codestrikerhtml_path = $codestriker_css;
  +    $codestrikerhtml_path =~ s/\/[\w\-]*.css/\//;
  +    my $overlib_js = $codestrikerhtml_path . "overlib.js";
  +    my $overlib_centerpopup_js = $codestrikerhtml_path . 
"overlib_centerpopup.js";
  +    my $overlib_draggable_js = $codestrikerhtml_path . 
"overlib_draggable.js";
  +    my $xbdhtml_js = $codestrikerhtml_path . "xbdhtml.js";
  +    my $codestriker_js = $codestrikerhtml_path . "codestriker.js";
  +    
   
       # Print the basic HTML header header, with the inclusion of the scripts.
       print '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">';
  
  
  
  
  
  Index: UrlBuilder.pm
  ===================================================================
  RCS file: 
/cvsroot/codestriker/codestriker/lib/Codestriker/Http/UrlBuilder.pm,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- UrlBuilder.pm     19 Jun 2008 03:33:50 -0000      1.31
  +++ UrlBuilder.pm     21 Jun 2008 10:55:56 -0000      1.32
  @@ -31,13 +31,14 @@
        $self->{url_prefix} = $query->url(-relative=>1);
       }
   
  -    # Check if the HTML files are accessible vi another URL (required for
  +    # Check if the HTML files are accessible via another URL (required for
       # sourceforge deployment).  Check $Codestriker::codestriker_css.
       my $htmlurl;
       if (defined $Codestriker::codestriker_css &&
  -     $Codestriker::codestriker_css ne "") {
  +     $Codestriker::codestriker_css ne "" &&
  +     $Codestriker::codestriker_css =~ /[\/\\]/o) {
        $htmlurl = $Codestriker::codestriker_css;
  -     $htmlurl =~ s/\/codestriker\.css//;
  +     $htmlurl =~ s/\/.+?\.css//;
       }
       else {
        # Standard Codestriker deployment.
  
  
  
  
  
  Index: codestriker-bluish.css
  ===================================================================
  RCS file: codestriker-bluish.css
  diff -N codestriker-bluish.css
  --- /dev/null 1 Jan 1970 00:00:00 -0000
  +++ codestriker-bluish.css    21 Jun 2008 10:55:57 -0000      1.1
  @@ -0,0 +1,173 @@
  +/* CSS for codestriker */
  +
  +BODY {background-color: #fff;}
  +
  +H1 {font-family: Tahoma, Verdana, Bitstream Vera Sans, sans-serif;}
  +
  +/* Links */
  +A:link    {color: #081020;}
  +A:visited {color: #101828;}
  +
  +/* File heading */
  +TD.file {background-color: #cccccc; font-family: Georgia, serif; font-size: 
medium}
  +
  +/* Line heading */
  +TD.line {background-color: #99cccc; font-family: Georgia, serif; font-size: 
medium}
  +
  +/* Normal text */
  +TD.n {font-family: Georgia, serif; font-size: smaller}
  +
  +/* Normal text monospaced */
  +TD.msn {font-family: monospace; font-size: smaller}
  +
  +/* Added text */
  +TD.a {background-color: #abd; font-family: Georgia, serif; font-size: 
smaller}
  +
  +/* Added text monospaced */
  +TD.msa {background-color: #abd; font-family: monospace; font-size: smaller}
  +
  +/* Added file */
  +TD.af {background-color: #abd}
  +
  +/* Added blank text */
  +TD.ab {background-color: #cccccc; font-family: Georgia, serif; font-size: 
smaller}
  +
  +/* Added blank text monospaced */
  +TD.msab {background-color: #cccccc; font-family: monospace; font-size: 
smaller}
  +
  +/* Removed text */
  +TD.r {background-color: #ff9999; font-family: Georgia, serif; font-size: 
smaller}
  +
  +/* Removed text monospaced */
  +TD.msr {background-color: #ff9999; font-family: monospace; font-size: 
smaller}
  +
  +/* Removed file */
  +TD.rf {background-color: #ff9999}
  +
  +/* Removed blank text */
  +TD.rb {background-color: #cccccc; font-family: Georgia, serif; font-size: 
smaller}
  +
  +/* Changed text */
  +TD.c {background-color: #ffff77; font-family: Georgia, serif; font-size: 
smaller}
  +
  +/* Changed text monospaced */
  +TD.msc {background-color: #ffff77; font-family: monospace; font-size: 
smaller}
  +
  +/* Changed file */
  +TD.cf {background-color: #ffff77}
  +
  +/* Changed blank text */
  +TD.cb {background-color: #eeee77; font-family: Georgia, serif; font-size: 
smaller}
  +
  +/* Changed blank text monospaced */
  +TD.mscb {background-color: #eeee77; font-family: monospace; font-size: 
smaller}
  +
  +/* Line number with comment */
  +SPAN.comment {color: #ff0000; font-family: Georgia, serif; font-size: 
smaller}
  +
  +/* Line number with no comment */
  +SPAN.nocom {font-family: Georgia, serif; font-size: smaller}
  +
  +/* Monospaced line with added text */
  +SPAN.msa {background-color: #abd; font-family: monospace; font-size: medium}
  +
  +/* Monospaced line with removed text */
  +SPAN.msr {background-color: #ff9999; font-family: monospace; font-size: 
medium}
  +
  +/* Monospaced line with changed text */
  +SPAN.msc {background-color: #ffff77; font-family: monospace; font-size: 
medium}
  +
  +/* Monospaced line with normal text */
  +SPAN.ms {font-family: monospace; font-size: medium}
  +
  +/* Monospaced line number with comment */
  +SPAN.mscom {color: #ff0000; font-family: monospace; font-size: medium}
  +/* Monospaced line number with no comment */
  +SPAN.msnocom {font-family: monospace; font-size: medium}
  +
  +/* Smaller monospaced line number with comment */
  +SPAN.smscom {color: #ff0000; font-family: monospace; font-size: smaller}
  +
  +/* Smaller monospaced line number with no comment */
  +SPAN.smsnocom {font-family: monospace; font-size: smaller}
  +
  +/* File heading */
  +SPAN.file_comment {background-color: #cccccc; font-family: Georgia, serif; 
font-size: medium; color: #ff0000}
  +
  +/* General heading */
  +SPAN.general_comment {color: #ff0000}
  +
  +/* Style used for rendering data within popup window */
  +PRE.ms {font-family: monospace; font-size: medium}
  +
  +/* Styles to use for topic list display */
  +
  +/* Topic list heading */
  +TR.tlh {background-color: #abd; font-family: Georgia, serif}
  +
  +/* Topic list row type 1 */
  +TR.tl1 {background-color: #cccccc; font-family: Georgia, serif}
  +
  +/* Topic list row type 1 */
  +TR.tl2 {background-color: #eeeeee; font-family: Georgia, serif}
  +
  +/* Colour to use for matching identifier */
  +A.fid {color: #777777; text-decoration: none}
  +
  +/* Style comment listings. */
  +TR.comments {background-color: #abd; font-family: Georgia, serif} /* space */
  +TR.commenth {background-color: #cccccc; font-family: Georgia, serif} /* 
header */
  +TR.commentb {background-color: #eeeeee; font-family: monospace} /* comment 
body */
  +TD.commentb {background-color: #eeeeee; font-family: monospace} /* comment 
body */
  +TR.commentc {background-color: #eeeeee; font-family: monospace} /* context */
  +
  +/* Style for topic title headings. */
  +
  +/* Topic title heading */
  +TR.tth {background-color: #abd; font-family: Georgia, serif}
  +TD.tth {background-color: #abd; font-family: Georgia, serif}
  +
  +/* Topic title row type 0 */
  +TR.tt0 {background-color: #cccccc; font-family: Georgia, serif}
  +TD.tt0 {background-color: #cccccc; font-family: Georgia, serif}
  +
  +/* Topic title row type 1 */
  +TR.tt1 {background-color: #eeeeee; font-family: Georgia, serif}
  +TD.tt1 {background-color: #eeeeee; font-family: Georgia, serif}
  +
  +/* Codestriker heading */
  +TD.heading {text-align: center; background-color: #246; font-family: 
Georgia, serif; font-size: x-large}
  +A.heading {text-decoration: none; color: #ffffff; background-color: 
transparent;}
  +
  +/* Codestriker top-level menu */
  +DIV.menu {font-family: Georgia, serif}
  +
  +/* Tabbing styles */
  +TR.tab {background-color: #abd; font-family: Georgia, serif}
  +TD.selected {background-color: #abd}
  +TD.notselected {background-color: #cccccc}
  +TD.space {background-color: #eeeeee}
  +A.tab {text-decoration: none}
  +
  +/* Styles for error field in comment posting tooltip. */
  +span.hidden {display: none}
  +span.error {display: inline; color: red}
  +
  +span.feedback {color: red;}
  +span.obsolete-header {color: red; font-weight: bold;}
  +
  +/* Styles for highlight program. */
  +SPAN.num { color:#0000ff; }
  +SPAN.esc { color:#000080; font-weight:bold; }
  +SPAN.str { color:#008000; font-weight:bold; }
  +SPAN.dstr { color:#008000; font-weight:bold; }
  +SPAN.slc { color:#008080; }
  +SPAN.com { color:#008080; }
  +SPAN.dir { color:#008200; }
  +SPAN.sym { color:#000000; }
  +SPAN.line { color:#555555; }
  +SPAN.mark    { background-color:#ffffbb;}
  +SPAN.kwa { color:#000080; font-weight:bold; }
  +SPAN.kwb { color:#000080; font-weight:bold; }
  +SPAN.kwc { color:#000000; }
  +SPAN.kwd { color:#000000; }           
  \ No newline at end of file
  
  
  
  
  
  Index: codestriker.conf
  ===================================================================
  RCS file: /cvsroot/codestriker/codestriker/codestriker.conf,v
  retrieving revision 1.96
  retrieving revision 1.97
  diff -u -r1.96 -r1.97
  --- codestriker.conf  21 Jun 2008 10:21:36 -0000      1.96
  +++ codestriker.conf  21 Jun 2008 10:55:57 -0000      1.97
  @@ -93,8 +93,11 @@
   
   # If codestriker is installed differently to that described in the README 
file
   # (for example on the sourceforge servers), it may be necessary to explicitly
  -# specify the location of the codestriker_css as a URL.
  -$codestriker_css = '';
  +# specify the location of the codestriker_css as a URL.  This can also be
  +# used for specifying a different CSS file to use, for example,
  +# codestriker-bluish.css which is a part of the codestriker distribution.
  +$codestriker_css = 'codestriker.css';
  +#$codestriker_css = 'codestriker-bluish.css';
   
   # Valid repositories which may be selected at the create topic screen.
   # The order shown here is the order presented in the option list.  Most
  
  
  

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Codestriker-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/codestriker-commits

Reply via email to