Ignore:
Timestamp:
May 17, 2007, 12:58:04 PM (14 years ago)
Author:
Peter Johansson
Message:

added URL to 'General Information' on first page (fixes #196). To do that in a smooth way, I added a new member variable in SVNinfo class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/first_page.cc

    r311 r312  
    5151
    5252  void print_main_page(const std::string& dir, const SVNlog& log,
    53                        const Stats& stats)
     53                       const Stats& stats, std::string url)
    5454  {
    5555    std::string filename="index.html";
     
    6969      latest_commit.push_back(log.latest_commit(*i));
    7070
    71     print_general_information(os, log, authors.size());
     71    print_general_information(os, log, authors.size(), url);
    7272    sort(latest_commit.begin(), latest_commit.end(), GreaterRevision());
    7373    print_authors(os, latest_commit, stats);
     
    8080
    8181  void print_general_information(std::ostream& os, const SVNlog& log,
    82                                  size_t nof_authors)
     82                                 size_t nof_authors, std::string url)
    8383  {
    8484    Date begin(log.date()[0]);
     
    9393       << "General Information"
    9494       << "</th></tr></thead>\n"
     95       << "<tr><td>URL:</td><td>"
     96       << url << "</td></tr>\n"
    9597       << "<tr><td>First Revision:</td><td>"
    9698       << begin(timefmt) << "</td></tr>\n"
Note: See TracChangeset for help on using the changeset viewer.