Skip to content
This repository was archived by the owner on Dec 21, 2023. It is now read-only.

Commit 7130138

Browse files
committed
Replace bootstrap buttons with similarly styled hyperlinks
1 parent 88b1a4d commit 7130138

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

OpenTabletDriver.Web/Views/Plugins/Index.cshtml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,21 @@
4646
</div>
4747
</div>
4848
<div class="mt-auto text-center">
49-
<button type="button" class="btn-sm btn-primary me-1"
49+
<a role="button" class="btn-sm btn-primary me-1"
5050
@(string.IsNullOrWhiteSpace(metadata.DownloadUrl) ? "disabled" : string.Empty)
51-
onclick="location.href='@metadata.DownloadUrl'">
51+
href="@metadata.DownloadUrl">
5252
Download
53-
</button>
54-
<button type="button" class="btn-sm btn-info me-1"
53+
</a>
54+
<a role="button" class="btn-sm btn-info me-1"
5555
@(string.IsNullOrWhiteSpace(metadata.RepositoryUrl) ? "disabled" : string.Empty)
56-
onclick="location.href='@metadata.WikiUrl'">
56+
href="@metadata.WikiUrl">
5757
Wiki
58-
</button>
59-
<button type="button" class="btn-sm btn-info"
58+
</a>
59+
<a role="button" class="btn-sm btn-info"
6060
@(string.IsNullOrWhiteSpace(metadata.RepositoryUrl) ? "disabled" : string.Empty)
61-
onclick="location.href='@metadata.RepositoryUrl'">
61+
href="@metadata.RepositoryUrl">
6262
Source
63-
</button>
63+
</a>
6464
</div>
6565
</div>
6666
</div>

OpenTabletDriver.Web/Views/Shared/Release/_ReleaseCard.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<li class="list-group-item text-center @border">
1818
<img class="p-1" width="250" style="@(isPrimary ? string.Empty : "opacity:0.4")" src="otd.png"/>
1919
<div class="mt-1 mb-1">
20-
<button class="btn @buttonColor" onclick="location.href='@Model.Url'">View On GitHub</button>
20+
<a role="button" class="btn @buttonColor" href="@Model.Url">View On GitHub</a>
2121
</div>
2222
</li>
2323
@foreach (IReleaseAsset asset in await Model.GetReleaseAssets())

0 commit comments

Comments
 (0)