Skip to content

Commit acb9dab

Browse files
LanaparezaninLana Parezanin
andauthored
Downloads page changed (#9832)
Co-authored-by: Lana Parezanin <[email protected]>
1 parent 19c40e8 commit acb9dab

2 files changed

Lines changed: 21 additions & 16 deletions

File tree

src/NuGetGallery/Scripts/gallery/page-downloads.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77

88
var chevronIcon;
99
var olderVersionsElement;
10-
10+
1111
function makeOlderVersionsCollapsible() {
12-
const listContainer = document.getElementById('win-x86-versions').children[1]; //children[0] is the headline, children[1] is the list of versions
13-
const listContainerParent = document.getElementById('win-x86-versions');
12+
const listContainer = document.getElementById('nuget-exe').children[1]; //children[0] is the headline, children[1] is the list of versions
13+
const listContainerParent = document.getElementById('nuget-exe');
1414
olderVersionsElement = document.createElement('div');
1515

1616
// We want to display 2 versions to the users. Others should be collapsed.
1717
const allVersions = listContainer.querySelectorAll('li');
1818
var collapsedVersions = Array.from(allVersions).slice(2);
19-
19+
2020
// If the first two versions in json file are the same, we only want to show the first.
2121
// The following code checks if they're the same, and if so, removes the second.
2222
// It checks if they're the same based on the last word, which is a version identifier.
@@ -33,7 +33,7 @@
3333
if (firstVersionLastWord === secondVersionLastWord) {
3434
listContainer.removeChild(secondElement);
3535
}
36-
36+
3737
olderVersionsElement.setAttribute('class', 'older-versions-dropdown');
3838
olderVersionsElement.innerHTML = 'Older versions ' +
3939
'<button class="toggle-older-versions-button"' +
@@ -45,8 +45,7 @@
4545
'type="button">' +
4646
'<i class="ms-Icon ms-Icon--ChevronDown"' +
4747
'id="olderVersionsToggleChevron"></i>' +
48-
'</button>' +
49-
'<p> These versions are no longer supported and might have vulnerabilities. </p>';
48+
'</button>';
5049

5150
const versionsList = document.createElement('ul');
5251

src/NuGetGallery/Views/Pages/Downloads.cshtml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,28 @@
1111
</div>
1212
<div class="row">
1313
<div class="col-md-4">
14-
<h2 class="ms-fontSize-xxl">Windows x86 Commandline</h2>
14+
<h2 class="ms-fontSize-xxl">NuGet.exe</h2>
1515
<ul class="list-unstyled list-tools">
1616
<li><a href="https://dist.nuget.org/win-x86-commandline/latest/nuget.exe">nuget.exe - recommended latest</a></li>
1717
</ul>
1818
</div>
1919
<div class="col-md-4">
20-
<h2 class="ms-fontSize-xxl">Visual Studio 2015</h2>
20+
<h2 class="ms-fontSize-xxl">Visual Studio</h2>
21+
<p>
22+
NuGet Package Manager (PM UI and PM Console) is included with Visual Studio. Latest NuGet releases are delivered as part of Visual Studio updates. Note: nuget.exe itself is not included with any version of Visual Studio.
23+
</p>
2124
<ul class="list-unstyled list-tools">
22-
<li><a href="https://dist.nuget.org/visualstudio-2015-vsix/latest/NuGet.Tools.vsix">VS 2015 VSIX - latest</a></li>
25+
<li><a href="https://visualstudio.microsoft.com/downloads/">Download Visual Studio</a></li>
2326
</ul>
2427
</div>
2528
<div class="col-md-4">
26-
<h2 class="ms-fontSize-xxl">Visual Studio 2017</h2>
29+
<h2 class="ms-fontSize-xxl">.NET SDK</h2>
2730
<p>
28-
NuGet 4.x is included in the Visual Studio 2017 installation. Latest NuGet releases are delivered as part of Visual Studio updates.
31+
The CLI tool for .NET Core and .NET Standard libraries, and for any SDK-style project such as one that targets the .NET Framework. This CLI tool is included with the .NET Core SDK and provides core NuGet features on all platforms.
2932
</p>
33+
<ul class="list-unstyled list-tools">
34+
<li><a href="https://dotnet.microsoft.com/en-us/download">Download .NET SDK</a></li>
35+
</ul>
3036
</div>
3137
</div>
3238
</section>
@@ -40,21 +46,21 @@
4046
<div class="row">
4147
<div class="col-md-4">
4248
<!-- ko foreach: artifacts -->
43-
<!-- ko if: name == "win-x86-commandline" -->
44-
<div id="win-x86-versions" data-bind="template: { name: 'tool-list-template', data: $data }"></div>
49+
<!-- ko if: name == "nuget-exe" -->
50+
<div id="nuget-exe" data-bind="template: { name: 'tool-list-template', data: $data }"></div>
4551
<!-- /ko -->
4652
<!-- /ko -->
4753
</div>
4854
<div class="col-md-4">
4955
<!-- ko foreach: artifacts -->
50-
<!-- ko if: name == "visualstudio-2017-vsix" -->
56+
<!-- ko if: name == "visualstudio-vsix" -->
5157
<div data-bind="template: { name: 'tool-list-template', data: $data }"></div>
5258
<!-- /ko -->
5359
<!-- /ko -->
5460
</div>
5561
<div class="col-md-4">
5662
<!-- ko foreach: artifacts -->
57-
<!-- ko if: name != "win-x86-commandline" && name != "visualstudio-2017-vsix" -->
63+
<!-- ko if: name != "nuget-exe" && name != "visualstudio-vsix" -->
5864
<div data-bind="template: { name: 'tool-list-template', data: $data }"></div>
5965
<!-- /ko -->
6066
<!-- /ko -->

0 commit comments

Comments
 (0)