public IEncodedString TargetSupportCell(TargetSupportedIn supportStatus) { var supported = supportStatus.SupportedIn != null && supportStatus.Target.Version >= supportStatus.SupportedIn; var className = supported ? "IconSuccessEncoded" : "IconErrorEncoded"; var title = supported ? LocalizedStrings.Supported : LocalizedStrings.NotSupported; return(Raw($"<td class=\"{className}\" title=\"{title}\"></td>")); }
public IEncodedString TargetSupportCell(TargetSupportedIn supportStatus) { var supported = supportStatus.SupportedIn != null && supportStatus.Target.Version >= supportStatus.SupportedIn; var imageId = supported ? "icon-supported" : "icon-unsupported"; var title = supported ? LocalizedStrings.Supported : LocalizedStrings.NotSupported; var icon = $"<svg class=\"support-icon\"><use href=#{imageId}></use></svg>"; return(Raw(Invariant($"<td class=\"textCentered\" title=\"{title}\">{icon}</td>"))); }