Skip to content

Commit 7316c09

Browse files
authored
Make license text part of sidebar license link (#10246)
1 parent 935a0a5 commit 7316c09

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/NuGetGallery/Views/Packages/DisplayPackage.cshtml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,8 @@
256256

257257
@* The following two helpers must be on a single line each so no extra whitespace is introduced in the expression when rendered. *@
258258
@* Helpers themselves are needed not to introduce that extra whitespce, which happens if they are inlined. *@
259-
@helper MakeLicenseLink(CompositeLicenseExpressionSegment segment) {<a href="@LicenseExpressionRedirectUrlHelper.GetLicenseExpressionRedirectUrl(segment.Value)" aria-label="License @segment.Value">@segment.Value</a>}
260-
@helper MakeLicenseSpan(CompositeLicenseExpressionSegment segment) {<span>@segment.Value</span>}
259+
@helper MakeLicenseLink(CompositeLicenseExpressionSegment segment) {<a href="@LicenseExpressionRedirectUrlHelper.GetLicenseExpressionRedirectUrl(segment.Value)" aria-label="License @segment.Value">@segment.Value license</a>}
260+
@helper MakeLicenseSpan(CompositeLicenseExpressionSegment segment) {<span>@segment.Value license</span>}
261261

262262
<section role="main" class="container main-container page-package-details">
263263
<div class="row">
@@ -1107,7 +1107,6 @@
11071107
@MakeLicenseSpan(segment);
11081108
}
11091109
}
1110-
@:license
11111110
}
11121111
else
11131112
{

0 commit comments

Comments
 (0)