|
1 | | -@using NuGet.Services.Validation |
| 1 | +@using NuGet.Services.Validation |
2 | 2 | @using NuGet.Services.Licenses |
3 | 3 |
|
4 | 4 | @model DisplayPackageViewModel |
|
799 | 799 | <table class="table borderless" aria-label="Packages that depend on @Model.Id"> |
800 | 800 | <thead> |
801 | 801 | <tr> |
802 | | - <th class="used-by-adjust-table-head" scope="col" role="columnheader" tabindex="0">Package</th> |
803 | | - <th class="used-by-adjust-table-head" scope="col" role="columnheader" tabindex="0">Downloads</th> |
| 802 | + <th class="used-by-adjust-table-head" scope="col" role="columnheader">Package</th> |
| 803 | + <th class="used-by-adjust-table-head" scope="col" role="columnheader">Downloads</th> |
804 | 804 | </tr> |
805 | 805 | </thead> |
806 | 806 | <tbody class="no-border"> |
807 | 807 | @foreach (var item in Model.PackageDependents.TopPackages) |
808 | 808 | { |
809 | 809 | <tr> |
810 | | - <td class="used-by-desc-column" tabindex="0"> |
| 810 | + <td class="used-by-desc-column"> |
811 | 811 | <a class="text-left ngp-link" href="@Url.Package(item.Id)"> |
812 | 812 | @(item.Id) |
813 | 813 | </a> |
|
818 | 818 | } |
819 | 819 | <p class="used-by-desc">@item.Description</p> |
820 | 820 | </td> |
821 | | - <td tabindex="0"> |
| 821 | + <td> |
822 | 822 | <i class="ms-Icon ms-Icon--Download used-by-download-icon" aria-hidden="true"></i> <label class="used-by-count">@(item.DownloadCount.ToKiloFormat())</label> |
823 | 823 | </td> |
824 | 824 | </tr> |
|
850 | 850 | <table class="table borderless" aria-label="GitHub repositories that depend on @Model.Id"> |
851 | 851 | <thead> |
852 | 852 | <tr> |
853 | | - <th class="used-by-adjust-table-head" scope="col" role="columnheader" tabindex="0">Repository</th> |
854 | | - <th class="used-by-adjust-table-head" scope="col" role="columnheader" tabindex="0">Stars</th> |
| 853 | + <th class="used-by-adjust-table-head" scope="col" role="columnheader">Repository</th> |
| 854 | + <th class="used-by-adjust-table-head" scope="col" role="columnheader">Stars</th> |
855 | 855 | </tr> |
856 | 856 | </thead> |
857 | 857 | <tbody class="no-border"> |
858 | 858 | @foreach (var item in Model.GitHubDependenciesInformation.Repos.Select((elem, i) => new { Value = elem, Idx = i })) |
859 | 859 | { |
860 | 860 | <tr> |
861 | | - <td class="used-by-desc-column" tabindex="0"> |
| 861 | + <td class="used-by-desc-column"> |
862 | 862 | <a data-index-number="@item.Idx" class="text-left gh-link" href="@item.Value.Url" target="_blank"> |
863 | 863 | @(item.Value.Id) |
864 | 864 | </a> |
865 | 865 | <div class="row used-by-desc"> |
866 | 866 | <span>@(item.Value.Description)</span> |
867 | 867 | </div> |
868 | 868 | </td> |
869 | | - <td tabindex="0"> |
| 869 | + <td> |
870 | 870 | <i class="ms-Icon ms-Icon--FavoriteStarFill gh-star" aria-hidden="true"></i> <label class="used-by-count">@(item.Value.Stars.ToKiloFormat())</label> |
871 | 871 | </td> |
872 | 872 | </tr> |
|
893 | 893 | <table aria-label="Version History of @Model.Id" class="table borderless"> |
894 | 894 | <thead> |
895 | 895 | <tr> |
896 | | - <th scope="col" role="columnheader" tabindex="0">Version</th> |
897 | | - <th scope="col" role="columnheader" tabindex="0">Downloads</th> |
898 | | - <th scope="col" role="columnheader" tabindex="0">Last updated</th> |
| 896 | + <th scope="col" role="columnheader">Version</th> |
| 897 | + <th scope="col" role="columnheader">Downloads</th> |
| 898 | + <th scope="col" role="columnheader">Last updated</th> |
899 | 899 | @if (Model.CanDisplayPrivateMetadata) |
900 | 900 | { |
901 | | - <th scope="col" role="columnheader" tabindex="0">Status</th> |
| 901 | + <th scope="col" role="columnheader">Status</th> |
902 | 902 | } |
903 | 903 | @if (Model.IsCertificatesUIEnabled) |
904 | 904 | { |
|
917 | 917 | || (!packageVersion.Deleted && Model.CanDisplayPrivateMetadata)) |
918 | 918 | { |
919 | 919 | <tr class="@(packageVersion.IsCurrent(Model) ? "bg-brand-info" : null)"> |
920 | | - <td tabindex="0"> |
| 920 | + <td> |
921 | 921 | <a href="@Url.Package(packageVersion)" title="@packageVersion.Version"> |
922 | 922 | @packageVersion.Version.Abbreviate(30) |
923 | 923 | </a> |
924 | 924 | </td> |
925 | | - <td tabindex="0"> |
| 925 | + <td> |
926 | 926 | @packageVersion.DownloadCount.ToNuGetNumberString() |
927 | 927 | </td> |
928 | | - <td tabindex="0"> |
| 928 | + <td> |
929 | 929 | <span data-datetime="@packageVersion.LastUpdated.ToString("O")">@packageVersion.LastUpdated.ToNuGetShortDateString()</span> |
930 | 930 | @if (packageVersion.PushedBy != null) |
931 | 931 | { |
|
938 | 938 | { |
939 | 939 | var packageStatusSummary = packageVersion.PackageStatusSummary; |
940 | 940 |
|
941 | | - <td tabindex="0"> |
| 941 | + <td> |
942 | 942 | @if (packageStatusSummary == PackageStatusSummary.Listed || |
943 | 943 | packageStatusSummary == PackageStatusSummary.Unlisted) |
944 | 944 | { |
|
959 | 959 | } |
960 | 960 | else |
961 | 961 | { |
962 | | - <td tabindex="0" class="package-icon-cell"> |
| 962 | + <td class="package-icon-cell"> |
963 | 963 | <i class="ms-Icon ms-Icon--Ribbon package-icon" title="@packageVersion.SignatureInformation"></i> |
964 | 964 | </td> |
965 | 965 | } |
|
971 | 971 | } |
972 | 972 | else |
973 | 973 | { |
974 | | - <td tabindex="0" class="package-icon-cell package-warning-icon"> |
| 974 | + <td class="package-icon-cell package-warning-icon"> |
975 | 975 | <a class="tooltip-target tooltip-icon--black-icon" href="javascript:void(0)" role="button" aria-describedby="[email protected]" > |
976 | 976 | <i class="ms-Icon ms-Icon--Warning package-icon"></i> |
977 | 977 | <span class="tooltip-block" role="tooltip" id="[email protected]"> |
|
990 | 990 | else if (packageVersion.Deleted && packageVersion.CanDisplayPrivateMetadata) |
991 | 991 | { |
992 | 992 | <tr class="deleted"> |
993 | | - <td tabindex="0" class="version"> |
| 993 | + <td class="version"> |
994 | 994 | @packageVersion.Version |
995 | 995 | </td> |
996 | | - <td tabindex="0"> |
| 996 | + <td> |
997 | 997 | @packageVersion.DownloadCount |
998 | 998 | </td> |
999 | | - <td tabindex="0"> |
| 999 | + <td> |
1000 | 1000 | <span data-datetime="@packageVersion.LastUpdated.ToString("O")">@packageVersion.LastUpdated.ToNuGetShortDateString()</span> |
1001 | 1001 | </td> |
1002 | | - <td tabindex="0"> |
| 1002 | + <td> |
1003 | 1003 | Deleted |
1004 | 1004 | </td> |
1005 | 1005 | <td colspan="2"></td> |
|
0 commit comments