Changeset 864 for trunk/lib/File.cc
- Timestamp:
- Nov 20, 2009, 9:12:30 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/File.cc
r858 r864 41 41 #include <stdexcept> 42 42 #include <string> 43 #include <sstream> 43 44 #include <sys/stat.h> 44 45 … … 363 364 std::string outpath = stats_type+"/"+user+"/"+line_type+"/"+lpath; 364 365 std::string imagefile = stats_type+"/"+"images/"+line_type+"/"+ 365 lpath+". png";366 lpath+".svg"; 366 367 std::string html_name(outpath + ".html"); 367 368 std::ofstream os(html_name.c_str()); … … 369 370 stats_type); 370 371 path_anchor(os); 371 os << "<p class=\"plot\">\n<img src='"; 372 373 std::stringstream ss; 372 374 for (size_t i=0; i<level_; ++i) 373 os << "../";374 os << "../../../";375 ss << "../"; 376 ss << "../../../"; 375 377 if (user=="all") 376 os << stats_[stats_type].plot(imagefile,line_type);378 ss << stats_[stats_type].plot(imagefile,line_type); 377 379 else 378 os << imagefile; 379 os << "' alt='[plot]' />\n</p>"; 380 ss << imagefile; 381 os << "<p class=\"plot\">\n"; 382 os << "<object data='" << ss.str() << "' type='image/svg+xml' width='600'\n" 383 << "<embed src='" << ss.str() << "' type='image/svg+xml' width='600' />\n" 384 << "</object>\n"; 385 os << "</p>\n"; 380 386 381 387 print_author_summary(os, stats_[stats_type], line_type, log);
Note: See TracChangeset
for help on using the changeset viewer.