Changeset 363


Ignore:
Timestamp:
Jun 11, 2007, 1:20:01 AM (13 years ago)
Author:
Peter Johansson
Message:

modifying general info fixes #206

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/first_page.cc

    r362 r363  
    8484  {
    8585    Date begin(log.date()[0]);
    86     if (log.date().size()>1)
    87       begin = std::min(begin, Date(log.date()[1]));
    8886    Date end(log.date().back());
    89     Date now;
    90     std::string timefmt("%a, %e %b %Y");
     87    std::string timefmt("%a, %e %b %Y  %H:%M:%S");
    9188
    9289    os << "<div class=\"main\">"
     
    9693       << "<tr><td>URL:</td><td>"
    9794       << url << "</td></tr>\n"
    98        << "<tr><td>First Revision:</td><td>"
     95       << "<tr><td>First Revision Date:</td><td>"
    9996       << begin(timefmt) << "</td></tr>\n"
    100        << "<tr><td>Latest Revision:</td><td>"
     97       << "<tr><td>Latest Revision Date:</td><td>"
    10198       << end(timefmt) << "</td></tr>\n"
    102        << "<tr><td>Report Generated:</td><td>"
    103        << now(timefmt) << "</td></tr>\n"
    104        << "<tr><td>Repository Age:</td><td>";
    105     os << now.difftime(begin);
     99       << "<tr><td>Age:</td><td>";
     100    os << end.difftime(begin);
    106101    os << "</td></tr>\n"
     102       << "<tr><td>Smallest Revision:</td><td>" << log.revision()[0]
     103       << "</td></tr>\n"
     104       << "<tr><td>Biggest Revision:</td><td>" << log.revision().back()
     105       << "</td></tr>\n"
     106       << "<tr><td>Revision Count:</td><td>" << log.revision().size()
     107       << "</td></tr>\n"
    107108       << "<tr><td>Number of Authors:</td><td>" << nof_authors
    108        << "</td></tr>\n"
    109        << "<tr><td>Revisions:</td><td>" << log.revision().size()
    110109       << "</td></tr>\n"
    111110       << "</table></div>\n";
Note: See TracChangeset for help on using the changeset viewer.