Ignore:
Timestamp:
Sep 15, 2006, 1:19:40 PM (15 years ago)
Author:
Peter Johansson
Message:

fixes #94

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/html_utility.cc

    r209 r211  
    190190    std::string filename="index.html";
    191191    std::ofstream os(filename.c_str());
    192     print_header(os, dir, 0);
     192    print_header(os, dir, 0, "", "../index.html");
    193193    time_t now;
    194194    time (&now);
     
    236236
    237237
    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)
    239240  {
    240241    os << "<!DOCTYPE html\n"
     
    258259    os << "</li>"
    259260       << "<li>";
    260     anchor(os, "all/total/index.html", "Total", level,
     261    anchor(os, "all/total/"+path, "Total", level,
    261262           "View statistics of all lines");
    262263    os << "</li>"
    263264       << "<li>";
    264     anchor(os, "all/code/index.html", "Code", level,
     265    anchor(os, "all/code/"+path, "Code", level,
    265266           "View statistics of code lines");
    266267    os << "</li>"
    267268       << "<li>";
    268     anchor(os, "all/comments/index.html", "Comment", level,
     269    anchor(os, "all/comments/"+path, "Comment", level,
    269270           "View statistics of comment lines");
    270271    os << "</li>"
    271272       << "<li>";
    272     anchor(os, "all/empty/index.html", "Empty", level,
     273    anchor(os, "all/empty/", "Empty", level,
    273274           "View statistics of empty lines");
    274275    os << "</li>"
Note: See TracChangeset for help on using the changeset viewer.