mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
[collab] Don't add links at all if the authorUrl is left null (IJPL-165745)
#IJPL-165745 Fixed (cherry picked from commit 829fcffde7c01f238998b6d58f9af64c1a6b07ef) (cherry picked from commit e10ce49b556ae1c71dc7280efb9720b2dc4361a6) IJ-CR-148445 GitOrigin-RevId: 8274a0f6dec6589b1f440feb9ace84e9bee8ba24
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e875634d8d
commit
5cb9626d37
@@ -46,7 +46,7 @@ object CodeReviewTimelineUIUtil {
|
||||
}
|
||||
|
||||
private fun getTitleHtml(authorName: @Nls String, authorUrl: String?, date: Date?): @NlsSafe String {
|
||||
val userNameLink = HtmlChunk.link(authorUrl.orEmpty(), authorName)
|
||||
val userNameLink = (authorUrl?.let { HtmlChunk.link(it, authorName) } ?: HtmlChunk.text(authorName))
|
||||
.wrapWith(HtmlChunk.font(ColorUtil.toHtmlColor(UIUtil.getLabelForeground())))
|
||||
.bold()
|
||||
val builder = HtmlBuilder()
|
||||
|
||||
Reference in New Issue
Block a user