|
680 | 680 | { |
681 | 681 | <th>Status</th> |
682 | 682 | } |
683 | | - <th aria-label="Signature Information" abbr="Signature Information"></th> |
684 | | - <th aria-label="Deprecation Information" abbr="Deprecation Information"></th> |
| 683 | + @if (Model.IsCertificatesUIEnabled) |
| 684 | + { |
| 685 | + <th aria-label="Signature Information" abbr="Signature Information"></th> |
| 686 | + } |
| 687 | + @if (Model.IsPackageDeprecationEnabled) |
| 688 | + { |
| 689 | + <th aria-label="Deprecation Information" abbr="Deprecation Information"></th> |
| 690 | + } |
685 | 691 | </tr> |
686 | 692 | </thead> |
687 | 693 | <tbody class="no-border"> |
|
734 | 740 | </td> |
735 | 741 | } |
736 | 742 |
|
737 | | - <td class="package-icon-cell"> |
738 | | - @if (Model.IsCertificatesUIEnabled && !string.IsNullOrEmpty(packageVersion.SignatureInformation)) |
| 743 | + @if (Model.IsCertificatesUIEnabled) |
| 744 | + { |
| 745 | + if (string.IsNullOrEmpty(packageVersion.SignatureInformation)) |
739 | 746 | { |
740 | | - <i class="ms-Icon ms-Icon--Ribbon package-icon" title="@packageVersion.SignatureInformation"></i> |
| 747 | + <td class="package-icon-cell" aria-label="No signature"></td> |
741 | 748 | } |
742 | | - </td> |
743 | | - |
744 | | - <td class="package-icon-cell"> |
745 | | - @if (Model.IsPackageDeprecationEnabled && packageVersion.DeprecationStatus != PackageDeprecationStatus.NotDeprecated) |
| 749 | + else |
| 750 | + { |
| 751 | + <td class="package-icon-cell"> |
| 752 | + <i class="ms-Icon ms-Icon--Ribbon package-icon" title="@packageVersion.SignatureInformation"></i> |
| 753 | + </td> |
| 754 | + } |
| 755 | + } |
| 756 | + @if (Model.IsPackageDeprecationEnabled) |
| 757 | + { |
| 758 | + if (packageVersion.DeprecationStatus == PackageDeprecationStatus.NotDeprecated) |
| 759 | + { |
| 760 | + <td class="package-icon-cell" aria-label="Not deprecated"></td> |
| 761 | + } |
| 762 | + else |
746 | 763 | { |
747 | 764 | var deprecationTitle = packageVersion.Version; |
748 | 765 | var isLegacy = packageVersion.DeprecationStatus.HasFlag(PackageDeprecationStatus.Legacy); |
|
767 | 784 | deprecationTitle += " is deprecated."; |
768 | 785 | } |
769 | 786 |
|
770 | | - <i class="ms-Icon ms-Icon--Warning package-icon" title="@deprecationTitle"></i> |
| 787 | + <td class="package-icon-cell"> |
| 788 | + <i class="ms-Icon ms-Icon--Warning package-icon" title="@deprecationTitle"></i> |
| 789 | + </td> |
771 | 790 | } |
772 | | - </td> |
| 791 | + } |
773 | 792 | </tr> |
774 | 793 | } |
775 | 794 | else if (packageVersion.Deleted && packageVersion.CanDisplayPrivateMetadata) |
|
0 commit comments