Changeset 1095


Ignore:
Timestamp:
Jun 13, 2010, 2:37:59 AM (11 years ago)
Author:
Peter Johansson
Message:

fixes #453

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/first_page.cc

    r1024 r1095  
    153153         << 100*stats.comments(i->author())/(stats.comments()?stats.comments():1)
    154154         << "%)</td><td>";
    155       hs << Date(i->date())(timefmt);
     155      std::string date = Date(i->date())(timefmt);
     156      const Configuration& conf = Configuration::instance();
     157      if (conf.trac_root().empty())
     158        hs << date;
     159      else {
     160        std::stringstream url;
     161        url << conf.trac_root() << "changeset/" << i->revision();
     162        os << anchor(url.str(), date);
     163      }
    156164      os << "</td>" <<"</tr>";
    157165    }
Note: See TracChangeset for help on using the changeset viewer.