Changeset 235 for trunk/lib/File.cc


Ignore:
Timestamp:
Apr 21, 2007, 3:39:50 PM (14 years ago)
Author:
Peter Johansson
Message:

added Date class
changed date format on first page
fixed plotting only once (fixes #113)
changed interface to anchor class
more anchors to users
removed anchor to '../' in author summary in dirs
anchors are filtered through HtmlStream?
log messages are truncated and newlines are replaced with spaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/File.cc

    r234 r235  
    6464  {
    6565    std::string outpath = user+"/"+line_type+"/"+local_path();
     66    std::string imagefile = "images/"+line_type+"/"+local_path_+".png";
    6667    std::string html_name(outpath + ".html");
    6768    std::ofstream os(html_name.c_str());
    6869    print_header(os, name(), level_+2, user, line_type, local_path()+".html");
    6970    path_anchor(os);
    70     os << "<p align=center>\n<img src='"
    71        << file_name(stats_.plot(outpath+".png",local_path(),line_type))
    72        << "' alt='[plot]' border=0>\n</p>";
    73 
    74     print_author_summary(os);
     71    os << "<p align=center>\n<img src='";
     72    for (size_t i=0; i<level_; ++i)
     73      os << "../";
     74    os << "../../";
     75    if (user=="all")
     76      os << stats_.plot(imagefile, local_path(),line_type);
     77    else
     78      os << imagefile;
     79    os << "' alt='[plot]' border=0>\n</p>";
     80
     81    print_author_summary(os, line_type);
    7582    os << "</p>\n";
    7683
     
    137144        // else insert user name
    138145        copyright[timeinfo->tm_year].insert(*author);
    139         std::cerr << "Warning: no alias found for `" << *author << "`\n";
     146        std::cerr << "svndigest: warning: no copyright alias found for `"
     147                  << *author << "`\n";
    140148        // insert alias to avoid multiple warnings.
    141149        alias.insert(name, std::make_pair(*author, *author));
Note: See TracChangeset for help on using the changeset viewer.