Skip to content

Commit b422766

Browse files
committed
Revert "Downloads page changed (#9832)"
This reverts commit acb9dab.
1 parent adde172 commit b422766

2 files changed

Lines changed: 16 additions & 21 deletions

File tree

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

Lines changed: 7 additions & 6 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('nuget-exe').children[1]; //children[0] is the headline, children[1] is the list of versions
13-
const listContainerParent = document.getElementById('nuget-exe');
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');
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,7 +45,8 @@
4545
'type="button">' +
4646
'<i class="ms-Icon ms-Icon--ChevronDown"' +
4747
'id="olderVersionsToggleChevron"></i>' +
48-
'</button>';
48+
'</button>' +
49+
'<p> These versions are no longer supported and might have vulnerabilities. </p>';
4950

5051
const versionsList = document.createElement('ul');
5152

src/NuGetGallery/Views/Pages/Downloads.cshtml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,22 @@
1111
</div>
1212
<div class="row">
1313
<div class="col-md-4">
14-
<h2 class="ms-fontSize-xxl">NuGet.exe</h2>
14+
<h2 class="ms-fontSize-xxl">Windows x86 Commandline</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</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>
20+
<h2 class="ms-fontSize-xxl">Visual Studio 2015</h2>
2421
<ul class="list-unstyled list-tools">
25-
<li><a href="https://visualstudio.microsoft.com/downloads/">Download Visual Studio</a></li>
22+
<li><a href="https://dist.nuget.org/visualstudio-2015-vsix/latest/NuGet.Tools.vsix">VS 2015 VSIX - latest</a></li>
2623
</ul>
2724
</div>
2825
<div class="col-md-4">
29-
<h2 class="ms-fontSize-xxl">.NET SDK</h2>
26+
<h2 class="ms-fontSize-xxl">Visual Studio 2017</h2>
3027
<p>
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.
28+
NuGet 4.x is included in the Visual Studio 2017 installation. Latest NuGet releases are delivered as part of Visual Studio updates.
3229
</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>
3630
</div>
3731
</div>
3832
</section>
@@ -46,21 +40,21 @@
4640
<div class="row">
4741
<div class="col-md-4">
4842
<!-- ko foreach: artifacts -->
49-
<!-- ko if: name == "nuget-exe" -->
50-
<div id="nuget-exe" data-bind="template: { name: 'tool-list-template', data: $data }"></div>
43+
<!-- ko if: name == "win-x86-commandline" -->
44+
<div id="win-x86-versions" data-bind="template: { name: 'tool-list-template', data: $data }"></div>
5145
<!-- /ko -->
5246
<!-- /ko -->
5347
</div>
5448
<div class="col-md-4">
5549
<!-- ko foreach: artifacts -->
56-
<!-- ko if: name == "visualstudio-vsix" -->
50+
<!-- ko if: name == "visualstudio-2017-vsix" -->
5751
<div data-bind="template: { name: 'tool-list-template', data: $data }"></div>
5852
<!-- /ko -->
5953
<!-- /ko -->
6054
</div>
6155
<div class="col-md-4">
6256
<!-- ko foreach: artifacts -->
63-
<!-- ko if: name != "nuget-exe" && name != "visualstudio-vsix" -->
57+
<!-- ko if: name != "win-x86-commandline" && name != "visualstudio-2017-vsix" -->
6458
<div data-bind="template: { name: 'tool-list-template', data: $data }"></div>
6559
<!-- /ko -->
6660
<!-- /ko -->

0 commit comments

Comments
 (0)