|
9 | 9 |
|
10 | 10 | var absolutePackageUrl = Url.Absolute(Url.Package(Model.Id)); |
11 | 11 |
|
12 | | - var hasSymbolPackageAvailable = Model.LatestSymbolPackage != null && Model.LatestSymbolPackage.StatusKey == PackageStatus.Available; |
| 12 | + var hasSymbolsPackageAvailable = Model.LatestSymbolsPackage != null && Model.LatestSymbolsPackage.StatusKey == PackageStatus.Available; |
| 13 | + var showSymbolsPackageStatus = Model.LatestSymbolsPackage != null && Model.LatestSymbolsPackage.StatusKey != PackageStatus.Available; |
13 | 14 |
|
14 | 15 | PackageManagerViewModel[] packageManagers; |
15 | 16 |
|
|
199 | 200 | @<text> |
200 | 201 | <strong>Package publishing failed.</strong> This package could not be published due to the following reason(s): |
201 | 202 | <ul class="failed-validation-alert-list"> |
202 | | - @foreach (var issue in Model.ValidationIssues) |
| 203 | + @foreach (var issue in Model.PackageValidationIssues) |
203 | 204 | { |
204 | 205 | <li>@Html.Partial("_ValidationIssue", issue)</li> |
205 | 206 | } |
206 | 207 | </ul> |
207 | | - @if (!Model.ValidationIssues.Any(i => i.IssueCode == ValidationIssueCode.Unknown)) |
| 208 | + @if (!Model.PackageValidationIssues.Any(i => i.IssueCode == ValidationIssueCode.Unknown)) |
208 | 209 | { |
209 | | - var issuePluralString = Model.ValidationIssues.Count() > 1 ? "all the issues" : "the issue"; |
| 210 | + var issuePluralString = Model.PackageValidationIssues.Count() > 1 ? "all the issues" : "the issue"; |
210 | 211 | <text>Once you've fixed @issuePluralString with your package, you can reupload it with the same ID and version.</text> |
211 | 212 | } |
212 | 213 | else |
|
238 | 239 | @if (Model.HasNewerRelease) |
239 | 240 | { |
240 | 241 | @ViewHelpers.AlertInfo( |
241 | | - @<text> |
242 | | - There is a newer version of this package available. |
243 | | - <br /> See the version list below for details. |
244 | | - </text> |
245 | | - ) |
| 242 | + @<text> |
| 243 | + There is a newer version of this package available. |
| 244 | + <br /> See the version list below for details. |
| 245 | + </text> |
| 246 | + ) |
246 | 247 | } |
247 | 248 | else if (Model.HasNewerPrerelease) |
248 | 249 | { |
249 | 250 | @ViewHelpers.AlertInfo( |
250 | | - @<text> |
251 | | - There is a newer prerelease version of this package available. |
252 | | - <br /> See the version list below for details. |
253 | | - </text> |
254 | | - ) |
| 251 | + @<text> |
| 252 | + There is a newer prerelease version of this package available. |
| 253 | + <br /> See the version list below for details. |
| 254 | + </text> |
| 255 | + ) |
255 | 256 | } |
256 | 257 |
|
257 | 258 | @if (Model.Listed && Model.IsIndexed.HasValue && !Model.IsIndexed.Value && Model.Available) |
|
269 | 270 | @ViewHelpers.AlertIsSemVer2Package(Model.HasSemVer2Version, Model.HasSemVer2Dependency) |
270 | 271 | } |
271 | 272 |
|
| 273 | + @if (showSymbolsPackageStatus) |
| 274 | + { |
| 275 | + if (Model.LatestSymbolsPackage.StatusKey == PackageStatus.Validating) |
| 276 | + { |
| 277 | + @ViewHelpers.AlertWarning( |
| 278 | + @<text> |
| 279 | + The symbols for this package have not been indexed yet. They are not available |
| 280 | + for download from the NuGet.org symbol server. Symbols will be indexed and will |
| 281 | + be available for download after both validation and indexing are complete. |
| 282 | + Symbols validation and indexing may take up to an hour. <a href="https://aka.ms/NuGetSymbolsPackageValidation">Read more</a>. |
| 283 | + </text> |
| 284 | + ) |
| 285 | + } |
| 286 | + else if (Model.LatestSymbolsPackage.StatusKey == PackageStatus.FailedValidation) |
| 287 | + { |
| 288 | + @ViewHelpers.AlertDanger( |
| 289 | + @<text> |
| 290 | + <strong>Symbols package publishing failed.</strong> The associated symbols package could not be published due to the following reason(s): |
| 291 | + <ul class="failed-validation-alert-list"> |
| 292 | + @foreach (var issue in Model.SymbolsPackageValidationIssues) |
| 293 | + { |
| 294 | + <li>@Html.Partial("_ValidationIssue", issue)</li> |
| 295 | + } |
| 296 | + </ul> |
| 297 | + @if (!Model.SymbolsPackageValidationIssues.Any(i => i.IssueCode == ValidationIssueCode.Unknown)) |
| 298 | + { |
| 299 | + var issuePluralString = Model.SymbolsPackageValidationIssues.Count() > 1 ? "all the issues" : "the issue"; |
| 300 | + <text>Once you've fixed @issuePluralString with your symbols package, you can re-upload it.</text> |
| 301 | + } |
| 302 | + else |
| 303 | + { |
| 304 | + < text> Please contact < a href= "mailto:[email protected]"> support@nuget.org</ a> to help fix your symbols package.</ text> |
| 305 | + } |
| 306 | + </text>) |
| 307 | + } |
| 308 | + } |
| 309 | + |
272 | 310 | @if (!Model.Listed && Model.Available) |
273 | 311 | { |
274 | 312 | if (Model.CanDisplayPrivateMetadata) |
|
467 | 505 | </td> |
468 | 506 | <td> |
469 | 507 | <a href="@Url.Package(packageVersion)" title="@packageVersion.FullVersion"> |
470 | | - @packageVersion.Version.Abbreviate(30) |
| 508 | + @packageVersion.Version.Abbreviate(30) |
471 | 509 | </a> |
472 | 510 | </td> |
473 | 511 | <td> |
|
626 | 664 | <a href="@Url.PackageDownload(2, Model.Id, Model.Version)" data-track="outbound-manual-download" title="Download the raw nupkg file." rel="nofollow">Download Package</a> |
627 | 665 | (@Model.PackageFileSize.ToUserFriendlyBytesLabel()) |
628 | 666 | </li> |
629 | | - if (hasSymbolPackageAvailable) |
| 667 | + if (hasSymbolsPackageAvailable) |
630 | 668 | { |
631 | 669 | <li> |
632 | 670 | <i class="ms-Icon ms-Icon--CloudDownload" aria-hidden="true"></i> |
633 | 671 | <a href="@Url.SymbolPackageDownload(2, Model.Id, Model.Version)" data-track="outbound-manual-download" title="Download the raw snupkg file." rel="nofollow">Download Symbols</a> |
634 | | - (@Model.LatestSymbolPackage.FileSize.ToUserFriendlyBytesLabel()) |
| 672 | + (@Model.LatestSymbolsPackage.FileSize.ToUserFriendlyBytesLabel()) |
635 | 673 | </li> |
636 | 674 | } |
637 | 675 | <li class="no-clickonce"> |
|
0 commit comments