25 #ifndef HTML_H |
25 #ifndef HTML_H |
26 #define HTML_H |
26 #define HTML_H |
27 |
27 |
28 #include <string> |
28 #include <string> |
29 #include <chrono> |
29 #include <chrono> |
|
30 #include <array> |
30 |
31 |
31 namespace html { |
32 namespace html { |
32 |
33 |
33 static constexpr unsigned columns = 53; |
34 static constexpr unsigned columns = 53; |
34 |
35 |
35 void open(bool fragment); |
36 void open(bool fragment); |
36 void close(bool fragment); |
37 void close(bool fragment); |
37 |
38 |
38 void h1(const std::string& heading); |
39 void heading_repo(const std::string& repo); |
39 void h2(const std::string& heading); |
40 void heading_author(const std::string& author, unsigned int total_commits); |
40 void table_begin(std::chrono::year y); |
41 void table_begin(std::chrono::year y, const std::array<unsigned int, 12> &commits_per_month); |
41 void table_end(); |
42 void table_end(); |
42 void row_begin(unsigned int row); |
43 void row_begin(unsigned int row); |
43 void row_end(); |
44 void row_end(); |
44 void cell_out_of_range(); |
45 void cell_out_of_range(); |
45 void cell(std::chrono::year_month_day ymd, unsigned commits); |
46 void cell(std::chrono::year_month_day ymd, unsigned commits); |