#78 Custom header and footer HTML

Next Release
closed
nobody
5
2009-08-19
2008-10-01
David Multer
No

The ability to specify a custom CSS file or link is important for integrating StatCVS output into an existing website, but providing custom header and footer HTML is also critical. Also please add to StatSVN.

Discussion

  • More specifically, I need the ability to add a <link> block in the body, and a <ul> block right after the <body> tag.

     
  • David Multer
    David Multer
    2009-08-19

    Currently I modify the function MarkupHTML.getHeader(...) in file src/net/sf/statcvs/pages/MarkupHTML.java (v0.6.0) at line 47 as follows:

    if (ConfigurationOptions.isEnableTwitterButton()) {
    addTwitterScript(b);
    }

    /* insert link to custom stylesheet and global navigation menubar */
    b.append(" <link href=\"/custom.css\" rel=\"stylesheet\" type=\"text/css\" />\n");
    b.append(" </head>\n\n<body>\n");
    b.append("<ul class=\"commonMenubar\">...</ul>");

    return b.toString();

     
  • Will be checked in tonight.
    A beta jar will be available on the site soon.

     
    • status: open --> closed