src/html.cpp

changeset 50
1ebab6df60c2
parent 46
7e099403e5b0
child 52
e9edc3bd0301
equal deleted inserted replaced
49:e4f1aea7df99 50:1ebab6df60c2
146 puts("</div>"); 146 puts("</div>");
147 } 147 }
148 148
149 void html::heading_repo(const std::string& repo) { 149 void html::heading_repo(const std::string& repo) {
150 indent(); 150 indent();
151 printf("<h1 data-repo=\"%s\">%1$s</h1>\n", encode(repo).c_str()); 151 printf("<h1 data-repo=\"%1$s\">%1$s</h1>\n", encode(repo).c_str());
152 } 152 }
153 153
154 void html::heading_author(const std::string& author, unsigned int total_commits) { 154 void html::heading_author(const std::string& author, unsigned int total_commits) {
155 indent(); 155 indent();
156 printf("<h2 title=\"Total commits: %u\">%s</h2>\n", 156 printf("<h2 title=\"Total commits: %u\">%s</h2>\n",

mercurial