History

ui-shared: use placeholder for empty commit subject

Display a placeholder when creating links to commits with empty subjects. This avoids the creation of links of the form <a></a>.

Christian Franke committed 14 years ago

Commit fe1bb0e1 parent 7ea35f91 file · +4 −1Browse files

Unified · Split

ui-shared.c+4−1
@@ -361,7 +361,10 @@ void cgit_commit_link(char *name, const char *title, const char *class, · 360 unmodified lines
361 delim = "&amp;";361 delim = "&amp;";
362 }362 }
363 html("'>");363 html("'>");
364 html_txt(name);364 if (name[0] != '\0')
365 html_txt(name);
366 else
367 html_txt("(no commit message)");
365 html("</a>");368 html("</a>");
366}369}
367 370