mirror of
https://git.zx2c4.com/cgit
synced 2024-11-26 10:28:42 +00:00
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>.
This commit is contained in:
parent
7ea35f9f8e
commit
fe1bb0e765
@ -361,7 +361,10 @@ void cgit_commit_link(char *name, const char *title, const char *class,
|
|||||||
delim = "&";
|
delim = "&";
|
||||||
}
|
}
|
||||||
html("'>");
|
html("'>");
|
||||||
|
if (name[0] != '\0')
|
||||||
html_txt(name);
|
html_txt(name);
|
||||||
|
else
|
||||||
|
html_txt("(no commit message)");
|
||||||
html("</a>");
|
html("</a>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user