Skip to content

Commit 9b6c98a

Browse files
committed
[GH Usage] Switched a button for an anchor
1 parent 53a20a9 commit 9b6c98a

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

src/Bootstrap/dist/css/bootstrap-theme.css

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Bootstrap/less/theme/page-display-package.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@
118118
}
119119

120120
.btn-gh-repo {
121+
display: inline-block;
122+
width: 100%;
121123
background-color: white;
122124
}
123125

src/NuGetGallery/Views/Packages/DisplayPackage.cshtml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -539,15 +539,14 @@
539539
{
540540
<div class="row top-buffer">
541541
<div class="col-xs-12">
542-
<button class="btn btn-gh-repo text-left btn-block"
543-
onclick="window.open('@dep.Url');">
542+
<a class="btn btn-gh-repo text-left" href="@dep.Url" target="_blank">
544543
<span class="pull-left">
545-
<a>@(dep.Id)</a>
544+
@(dep.Id)
546545
</span>
547546
<span class="badge pull-right badge-gh-repo">
548547
@(dep.Stars.ToKiloFormat()) <i class="ms-Icon ms-Icon--FavoriteStarFill star-gh-repo" aria-hidden="true"></i>
549548
</span>
550-
</button>
549+
</a>
551550
</div>
552551
</div>
553552

@@ -556,7 +555,9 @@
556555
}
557556
else
558557
{
559-
@:This package is not used by any popular GitHub repository.
558+
<p class="github-usage panel-collapse collapse" aria-expanded="true" id="github-usage">
559+
This package is not used by any popular GitHub repository.
560+
</p>
560561
}
561562
}
562563

0 commit comments

Comments
 (0)