adds footer to the HTML report.
[cfb.git] / prod / net / jaekl / cfb / analyze / HtmlReport.java
index 75e39a94c4d09933a63a83a426337a325d0f292d..a531143e5aebef72412b3b5cf3354a2c17faaed5 100644 (file)
@@ -62,6 +62,7 @@ public class HtmlReport {
                writeBugs(pw, CfbBundle.NEW_BUGS,   m_delta.getNew());
                writeBugs(pw, CfbBundle.FIXED_BUGS, m_delta.getFixed());
                writeBugs(pw, CfbBundle.OLD_BUGS,   m_delta.getCommon());
+               writeFooter(pw);
        }
        
        void writeBugLocations(PrintWriter pw, BugInstance bug)
@@ -138,6 +139,11 @@ public class HtmlReport {
                }
        }
        
+       void writeFooter(PrintWriter pw)
+       {
+               pw.println("    <DIV CLASS=\"Footer\">Report generated by <A HREF=\"https://jaekl.net/cfb/\">CFB</A></DIV>");
+       }
+       
        void writeHeader(PrintWriter pw)
        {
                String title = trans(CfbBundle.CFB_REPORT);
@@ -200,6 +206,8 @@ public class HtmlReport {
                pw.println("                   body { background-color: #F0F0FF; }");
            pw.println("    .CategoryName  { text-align: right; }");
            pw.println("    .CategoryValue { text-align: left; }");
+           pw.println("    div.Footer     { background-color: #0000FF; color: #FFFFFF; font-size: 0.9em; text-align: right; }");
+           pw.println("    div.Footer a:link { color: #FFFFFF }");
                pw.println("    .Loc           { font-family: monospace; }");
            pw.println("    .SectionHead   td { background-color: #0000FF; color: #FFFFFF; font-size: 1.25em; font-weight: bold; }");
                pw.println("    .Var           { font-family: monospace; }");