Changeset 310


Ignore:
Timestamp:
May 12, 2007, 3:34:45 PM (16 years ago)
Author:
Peter Johansson
Message:

fixes #183

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/first_page.cc

    r289 r310  
    129129    using namespace std;
    130130    for (vector<Commitment>::const_iterator i=lc.begin(); i!=lc.end(); ++i) {
    131       os << "<tr><td>"
    132          << anchor(string(i->author()+"/total/index.html"),i->author())
    133          << "</td><td>" << stats.lines(i->author()) << " ("
     131      os << "<tr><td>";
     132      if (stats.lines(i->author()))
     133        os << i->author();
     134      else
     135        os << anchor(string(i->author()+"/total/index.html"),i->author());
     136      os << "</td><td>" << stats.lines(i->author()) << " ("
    134137         << 100*stats.lines(i->author())/stats.lines() << "%)</td>"
    135138         << "<td>" << stats.code(i->author()) << " ("
Note: See TracChangeset for help on using the changeset viewer.