gforge-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gforge-commits] gforge-plugin-scmcvs/include CVSPlugin.class, 1.7, 1.8


From: cbayle
Subject: [Gforge-commits] gforge-plugin-scmcvs/include CVSPlugin.class, 1.7, 1.8
Date: Mon, 26 Jul 2004 04:10:47 -0500

Update of /cvsroot/gforge/gforge-plugin-scmcvs/include
In directory db.perdue.net:/tmp/cvs-serv28218/include

Modified Files:
        CVSPlugin.class 
Log Message:
Added cssstyle_scm plugin function


Index: CVSPlugin.class
===================================================================
RCS file: /cvsroot/gforge/gforge-plugin-scmcvs/include/CVSPlugin.class,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- CVSPlugin.class     23 Jul 2004 16:32:39 -0000      1.7
+++ CVSPlugin.class     26 Jul 2004 09:10:44 -0000      1.8
@@ -12,6 +12,7 @@
                $this->hooks[] = "scm_admin_page";
                $this->hooks[] = "scm_stats";
                $this->hooks[] = "group_approved";
+               $this->hooks[] = "cssstyle";
                //$this->hooks[] = "groupmenu_scm";
 
                 require_once('/etc/gforge/plugins/scmcvs/config.php') ;
@@ -46,11 +47,213 @@
                case "groupmenu_scm":
                        $this->display_groupmenu_scm ($params) ;
                        break;
+               case "cssstyle":
+                       $this->cssstyle_scm ($params) ;
+                       break;
                default:
                        // Forgot something
                }
        }
 
+       function cssstyle_scm ($layout) {
+               print '
+               
+               /* CSS for FreeBSD-CVSweb */
+               /* $FreeBSD: projects/cvsweb/css/cvsweb.css,v 1.14 2004/03/16 
18:24:41 scop Exp $ */
+               
+               /* body {
+                 color: #000;
+                 background-color: #fff;
+               }
+               */
+               th {
+                 text-align: left;
+               }
+               hr {
+                 height: 1px;
+                 border: none;
+                 background-color: #000;
+               }
+               h1 {
+                 text-align: center;
+               }
+               fieldset {
+                 background-color: #eee;
+                 padding: 0.8em;
+               }
+               input[type="submit"] {
+                 padding-left: 0.5em;
+                 padding-right: 0.5em;
+               }
+               
+               /* Generic nowrap class */
+               .nowrap {
+                 white-space: nowrap;
+               }
+               
+               /* Source, diff and annotate views */
+               .src {
+                 color: #000;
+                 background-color: #eee;
+                 font-style: normal;
+                 font-weight: normal;
+               }
+               
+               /* Navigation header for source views, diffs and annotations */
+               .navigate-header {
+                 background-color: #99e;
+                 padding: 2px;
+                 border: 2px outset;
+               }
+               
+               /* Directory table */
+               table.dir {
+                 border-right: 1px solid #ccc;
+               }
+               /* Cells */
+               table.dir * td {
+                 border-left: 1px solid #ccc;
+                 border-bottom: 1px solid #ccc;
+                 padding-left: 5px;
+                 padding-right: 5px;
+               }
+               /* Column headers */
+               table.dir * th {
+                 /*
+                 background-color:#ffc ;
+                 */
+                 background-color:'.$layout->COLOR_HTMLBOX_TITLE.' ;
+                 border: thin outset;
+                 padding-left: 5px;
+                 padding-right: 5px;
+               }
+               /* Sorted column header */
+               table.dir * th.sorted {
+                 /*
+                 background-color: #fc6;
+                 */
+                 background-color:'.$layout->COLOR_HTMLBOX_TITLE.' ;
+                 border: thin inset;
+               }
+               /* Even rows */
+               table.dir * tr.even {
+                 background-color: #fff;
+               }
+               /* Odd rows */
+               table.dir * tr.odd {
+                 background-color: #fff;
+               }
+               /* File and dir name columns */
+               table.dir * td.file, table.dir * td.dir {
+                 white-space: nowrap;
+               }
+               /* Graph link column */
+               table.dir * td.graph {
+                 padding-left: 3px;
+                 padding-right: 3px;
+                 text-align: center;
+                 width: 1%;
+               }
+               /* Age column */
+               table.dir * td.age {
+                 font-style: italic;
+                 white-space: nowrap;
+               }
+               table.dir * td.author {
+                 white-space: nowrap;
+               }
+               /* Log entry column */
+               table.dir * td.log {
+                 font-size: smaller;
+               }
+               /* Attic toggles in directory view */
+               .attic {
+                 font-size: smaller;
+               }
+               
+               /* Option table labels and values */
+               .opt-label {
+                 text-align: right;
+                 padding-left: 0.5em;
+               }
+               .opt-value {
+                 padding-right: 0.5em;
+               }
+               
+               /* Log entry in markup */
+               .log-markup {
+                 background-color: #fff;
+                 width: 100%;
+               }
+               
+               /* Diff-selected revision in log */
+               .diff-selected {
+                 padding-right: 0.5em;
+                 border-right: 10px solid #fc6;
+               }
+               
+               /* Line-header of each diffed file */
+               .diff-heading {
+                 background-color: #9cc;
+                 border: 2px outset;
+                 padding: 5px;
+               }
+               /* Lines that are the same */
+               .diff-same {
+                 font-family: Helvetica, Arial, sans-serif;
+                 font-size: smaller;
+               }
+               /* Empty lines */
+               .diff-empty {
+                 background-color: #ccc;
+                 font-size: smaller;
+               }
+               /* Added lines */
+               .diff-added {
+                 background-color: #ccf;
+                 font-family: Helvetica, Arial, sans-serif;
+                 font-size: smaller;
+               }
+               /* Removed lines */
+               .diff-removed {
+                 background-color: #f99;
+                 font-family: Helvetica, Arial, sans-serif;
+                 font-size: smaller;
+               }
+               /* Changed lines */
+               .diff-changed {
+                 background-color: #9f9;
+                 font-family: Helvetica, Arial, sans-serif;
+                 font-size: smaller;
+               }
+               /* Empty changed lines */
+               .diff-changed-missing {
+                 background-color: #9c9;
+                 font-size: smaller;
+               }
+               /* Unchanged text in ediffs */
+               .diff-unchanged {
+                 background-color: #ccc;
+                 font-family: Helvetica, Arial, sans-serif;
+                 font-size: smaller;
+               }
+               
+               /* Current revision lines in annotate view */
+               .current-rev {
+                 font-weight: bold;
+               }
+               
+               /* Download links */
+               .download-link { 
+                 font-weight: bold;
+               }
+               /* Display links */
+               .display-link { 
+                 font-weight: bold;
+               }
+               ';
+       }
+
        function display_scm_page ($group_id) {
                global $Language, $HTML ;
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]