Changeset 211 for trunk/lib/html_utility.cc
- Timestamp:
- Sep 15, 2006, 1:19:40 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/html_utility.cc
r209 r211 190 190 std::string filename="index.html"; 191 191 std::ofstream os(filename.c_str()); 192 print_header(os, dir, 0 );192 print_header(os, dir, 0, "", "../index.html"); 193 193 time_t now; 194 194 time (&now); … … 236 236 237 237 238 void print_header(std::ostream& os, const std::string& title, u_int level) 238 void print_header(std::ostream& os, const std::string& title, u_int level, 239 const std::string& line_type, const std::string& path) 239 240 { 240 241 os << "<!DOCTYPE html\n" … … 258 259 os << "</li>" 259 260 << "<li>"; 260 anchor(os, "all/total/ index.html", "Total", level,261 anchor(os, "all/total/"+path, "Total", level, 261 262 "View statistics of all lines"); 262 263 os << "</li>" 263 264 << "<li>"; 264 anchor(os, "all/code/ index.html", "Code", level,265 anchor(os, "all/code/"+path, "Code", level, 265 266 "View statistics of code lines"); 266 267 os << "</li>" 267 268 << "<li>"; 268 anchor(os, "all/comments/ index.html", "Comment", level,269 anchor(os, "all/comments/"+path, "Comment", level, 269 270 "View statistics of comment lines"); 270 271 os << "</li>" 271 272 << "<li>"; 272 anchor(os, "all/empty/ index.html", "Empty", level,273 anchor(os, "all/empty/", "Empty", level, 273 274 "View statistics of empty lines"); 274 275 os << "</li>"
Note: See TracChangeset
for help on using the changeset viewer.