src/html.cpp

changeset 35
d75805c1e3b9
parent 26
0b3a92df96db
child 41
19cc90878968
--- a/src/html.cpp	Wed Feb 19 18:12:10 2025 +0100
+++ b/src/html.cpp	Wed Feb 19 18:14:12 2025 +0100
@@ -213,11 +213,12 @@
         color_class = "commit-spam";
     }
     indent();
-    printf("<td class=\"%s\" title=\"%s, %d-%02u-%02u: %u commits\"></td>\n",
+    printf("<td class=\"%s\" title=\"%s, %d-%02u-%02u: %u %s\"></td>\n",
         color_class,
         weekdays[weekday(ymd).iso_encoding() - 1],
         static_cast<int>(ymd.year()),
         static_cast<unsigned>(ymd.month()),
         static_cast<unsigned>(ymd.day()),
-        commits);
+        commits,
+        commits == 1 ? "commit" : "commits");
 }

mercurial