53:1c80ba4a0d62 | 54:586dcd606e47 |
---|---|
27 | 27 |
28 #include <string> | 28 #include <string> |
29 #include <chrono> | 29 #include <chrono> |
30 #include <array> | 30 #include <array> |
31 | 31 |
32 #include "commit-data.h" | |
33 | |
32 namespace html { | 34 namespace html { |
33 | 35 |
34 static constexpr unsigned max_indentation = 16; | 36 static constexpr unsigned max_indentation = 16; |
35 static constexpr unsigned max_external_indentation = max_indentation - 4; | 37 static constexpr unsigned max_external_indentation = max_indentation - 4; |
36 static constexpr unsigned columns = 53; | 38 static constexpr unsigned columns = 53; |
45 void table_begin(std::chrono::year y, const std::array<unsigned int, 12> &commits_per_month); | 47 void table_begin(std::chrono::year y, const std::array<unsigned int, 12> &commits_per_month); |
46 void table_end(); | 48 void table_end(); |
47 void row_begin(unsigned int row); | 49 void row_begin(unsigned int row); |
48 void row_end(); | 50 void row_end(); |
49 void cell_out_of_range(); | 51 void cell_out_of_range(); |
50 void cell(std::chrono::year_month_day ymd, unsigned commits); | 52 void cell(std::chrono::year_month_day ymd, const fm::commits &commits = {}); |
51 | 53 |
52 } | 54 } |
53 | 55 |
54 #endif //HTML_H | 56 #endif //HTML_H |