Changeset 1254 for trunk/lib/first_page.cc
- Timestamp:
- Nov 1, 2010, 12:20:34 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/first_page.cc
r1253 r1254 31 31 #include "HtmlStream.h" 32 32 #include "html_utility.h" 33 #include "NodeCounter.h" 33 34 #include "Stats.h" 34 35 #include "StatsCollection.h" … … 52 53 53 54 void print_main_page(const std::string& dir, const SVNlog& log, 54 const StatsCollection& stats, std::string url) 55 const StatsCollection& stats, std::string url, 56 const NodeCounter& node_counter) 55 57 { 56 58 std::string filename="index.html"; … … 73 75 74 76 print_summary_plot(os, stats["classic"]); 75 print_general_information(os, log, authors.size(), url );77 print_general_information(os, log, authors.size(), url, node_counter); 76 78 sort(latest_commit.begin(), latest_commit.end(), GreaterRevision()); 77 79 print_authors(os, latest_commit, stats["classic"]); … … 83 85 84 86 void print_general_information(std::ostream& os, const SVNlog& log, 85 size_t nof_authors, std::string url) 87 size_t nof_authors, std::string url, 88 const NodeCounter& node_counter) 86 89 { 87 90 assert(log.commits().size()); … … 116 119 << "</td></tr>\n" 117 120 << "<tr><td>Number of Authors:</td><td>" << nof_authors 121 << "</td></tr>\n" 122 << "<tr><td>Number of Directories:</td><td>" 123 << node_counter.directories() 124 << "</td></tr>\n" 125 << "<tr><td>Number of Files:</td><td>" 126 << node_counter.files() 118 127 << "</td></tr>\n" 119 128 << "</tbody>\n"
Note: See TracChangeset
for help on using the changeset viewer.