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>.
Bu işleme şunda yer alıyor:
Christian Franke 2012-10-28 18:36:08 +01:00 işlemeyi yapan: Jason A. Donenfeld
ebeveyn 7ea35f9f8e
işleme fe1bb0e765
1 değiştirilmiş dosya ile 4 ekleme ve 1 silme

Dosyayı Görüntüle

@ -361,7 +361,10 @@ void cgit_commit_link(char *name, const char *title, const char *class,
delim = "&amp;"; delim = "&amp;";
} }
html("'>"); html("'>");
html_txt(name); if (name[0] != '\0')
html_txt(name);
else
html_txt("(no commit message)");
html("</a>"); html("</a>");
} }