Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
<Template Context="v">
@if (v.Row.IsObsolete)
{
<span class="text-decoration-line-through text-danger">@v.Value</span>
<span class="text-decoration-line-through text-danger me-2">@v.Value</span>
<Badge Color="Color.Danger" IsPill="true">
@Localizer["Obsolete"]
</Badge>
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private static string FormatTypeName(Type type)
}

var index = type.Name.IndexOf('`');
var typeName = type.Name.Substring(0, index);
var typeName = type.Name[..index];
var genericArgs = string.Join(", ", type.GetGenericArguments().Select(i => i.Name));
return $"{typeName}<{genericArgs}>";
}
Expand Down
1 change: 1 addition & 0 deletions src/BootstrapBlazor.Server/Locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"Type": "Type"
},
"BootstrapBlazor.Server.Components.Components.AttributeTable": {
"Obsolete": "Obsolete",
"AutoGenerateColumns": "Automatically generated",
"Total": "Total"
},
Expand Down
1 change: 1 addition & 0 deletions src/BootstrapBlazor.Server/Locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"Type": "类型"
},
"BootstrapBlazor.Server.Components.Components.AttributeTable": {
"Obsolete": "已弃用",
"AutoGenerateColumns": "自动生成",
"Total": "合计"
},
Expand Down
Loading