Skip to content

Commit 665daa6

Browse files
authored
Change current version highlighting on package page (#6319)
* remove current text * remove bold * add background color
1 parent fb22bd5 commit 665daa6

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/NuGetGallery/Views/Packages/DisplayPackage.cshtml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@
462462
{
463463
rowCount++;
464464
@VersionListDivider(rowCount, versionsExpanded)
465-
<tr>
465+
<tr class="@(packageVersion.IsCurrent(Model) ? "bg-info" : null)">
466466
<td class="signature-info-cell">
467467
@if (Model.IsCertificatesUIEnabled && !string.IsNullOrEmpty(packageVersion.SignatureInformation))
468468
{
@@ -471,13 +471,7 @@
471471
</td>
472472
<td>
473473
<a href="@Url.Package(packageVersion)" title="@packageVersion.FullVersion">
474-
<b>
475474
@packageVersion.Version.Abbreviate(30)
476-
@if (packageVersion.IsCurrent(Model))
477-
{
478-
@:(current)
479-
}
480-
</b>
481475
</a>
482476
</td>
483477
<td>

0 commit comments

Comments
 (0)