forked from NuGet/NuGetGallery
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix minor bugs in Deprecation UI found in bug bash (NuGet#6994)
- Loading branch information
Scott Bommarito
authored
Mar 13, 2019
1 parent
cac9cc3
commit 5972daf
Showing
9 changed files
with
42 additions
and
43 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
ViewBag.MdPageColumns = GalleryConstants.ColumnsFormMd; | ||
} | ||
|
||
@Html.Partial("_MultiSelectDropdown") | ||
|
||
<section role="main" class="container main-container"> | ||
@ViewHelpers.AjaxAntiForgeryToken(Html) | ||
<div class="row"> | ||
|
@@ -16,6 +18,15 @@ | |
"Manage", | ||
linkIdOnly: true)) | ||
|
||
@if (Model.IsLocked) | ||
{ | ||
@ViewHelpers.AlertDanger( | ||
@<text> | ||
Package '@Model.Id' has been locked. Please contact | ||
<a href="mailto:[email protected][email protected](string.Format("Requesting support for a locked package - '{0}'", Model.Id))">support@nuget.org</a> | ||
</text>) | ||
} | ||
|
||
@ViewHelpers.Section( | ||
this, | ||
"Owners", | ||
|
@@ -103,7 +114,7 @@ | |
var state = versionListedState[version]; | ||
// Update the listed checkbox to match the state of the package. | ||
var listed = state.Listed; | ||
$(".page-delete-package input#Listed")[0].checked = listed; | ||
$(".page-delete-package input#Listed").prop('checked', listed); | ||
// Update the text stating the download count on the delete form. | ||
var downloadCount = state.DownloadCount; | ||
$(".page-delete-package #downloadCount").text(downloadCount); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,8 +30,7 @@ | |
@ViewHelpers.AlertDanger( | ||
@<text> | ||
<span> | ||
Package '@Model.Id' has been locked. This means you cannot publish a new version or change the listing status of a published package version. Please contact | ||
<a href="mailto:[email protected][email protected](string.Format("Requesting support for a locked package - '{0}'", Model.Id))">support@nuget.org</a>. | ||
You cannot update the documentation of a locked package. | ||
</span> | ||
</text>) | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,35 +10,16 @@ | |
|
||
@if (!Model.VersionSelectList.Any()) | ||
{ | ||
@ViewHelpers.AlertInfo( | ||
@<text> | ||
<span>There are no versions that can have their listing state changed.</span> | ||
</text>) | ||
@ViewHelpers.AlertInfo(@<text>There are no versions that can have their listing state changed.</text>) | ||
} | ||
else if (Model.IsLocked && !User.IsAdministrator()) | ||
{ | ||
<div class="validation-error-message-list"> | ||
@ViewHelpers.AlertDanger( | ||
@<text> | ||
<span> | ||
Package '@Model.Id' has been locked. This means you cannot publish a new version or change the listing status of a published package version. Please contact | ||
<a href="mailto:[email protected][email protected](string.Format("Requesting support for a locked package - '{0}'", Model.Id))">support@nuget.org</a>. | ||
</span> | ||
</text>) | ||
@ViewHelpers.AlertDanger(@<text>You cannot change the listing state of a locked package.</text>) | ||
</div> | ||
} | ||
else | ||
{ | ||
if (Model.IsLocked && User.IsAdministrator()) | ||
{ | ||
<div class="validation-error-message-list"> | ||
@ViewHelpers.AlertDanger( | ||
@<text> | ||
<span>Package '@Model.Id' has been locked.</span> | ||
</text>) | ||
</div> | ||
} | ||
|
||
<label for="input-select-version" id="package-version-label">Select version</label> | ||
|
||
@Html.DropDownList("version-selection", Model.VersionSelectList, | ||
|