114 table.heatmap td.commit-spam { |
117 table.heatmap td.commit-spam { |
115 background-color: #008000; |
118 background-color: #008000; |
116 } |
119 } |
117 </style> |
120 </style> |
118 </head> |
121 </head> |
119 <body>)"); |
122 <body> |
120 indentation = 2; |
123 <div class=\"heatmap-content\">)"); |
121 } |
124 indentation = 3; |
122 |
125 } |
123 void html::close() { |
126 } |
124 puts("\t</body>\n</html>"); |
127 |
|
128 void html::close(bool fragment) { |
|
129 if (fragment) { |
|
130 puts("</div>"); |
|
131 } else { |
|
132 puts("\t\t</div>\n\t</body>\n</html>"); |
|
133 } |
125 } |
134 } |
126 |
135 |
127 void html::h1(const std::string& heading) { |
136 void html::h1(const std::string& heading) { |
128 indent(); |
137 indent(); |
129 printf("<h1>%s</h1>\n", encode(heading).c_str()); |
138 printf("<h1>%s</h1>\n", encode(heading).c_str()); |