src/main.cpp

changeset 75
857af79337d5
parent 73
707f42bb0484
equal deleted inserted replaced
74:bae9922f4681 75:857af79337d5
307 h1_rendered = true; 307 h1_rendered = true;
308 } 308 }
309 html::chart_begin(repo, author); 309 html::chart_begin(repo, author);
310 310
311 const auto commits_per_month = heatmap.commits_per_month(repo, author, report_year); 311 const auto commits_per_month = heatmap.commits_per_month(repo, author, report_year);
312 const auto total_commits = std::accumulate(commits_per_month.begin(), commits_per_month.end(), 0u); 312 const auto total_commits = std::accumulate(commits_per_month.begin(), commits_per_month.end(), 0u,
313 [](unsigned sum, const auto &summary) { return sum + summary.count(); });
313 html::heading_author(author, total_commits); 314 html::heading_author(author, total_commits);
314 html::table_begin(report_year, commits_per_month); 315 html::table_begin(report_year, settings.separate, commits_per_month);
315 316
316 // initialize counters 317 // initialize counters
317 unsigned column = 0, row = 0; 318 unsigned column = 0, row = 0;
318 319
319 // initialize the first day (which must be a Monday, possibly the year before) 320 // initialize the first day (which must be a Monday, possibly the year before)

mercurial