Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add links to docs and API in the footer #4431

Merged
merged 2 commits into from Dec 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 9 additions & 1 deletion BTCPayServer/Views/Shared/_Footer.cshtml
@@ -1,4 +1,4 @@
@using BTCPayServer.Abstractions.Extensions
@using BTCPayServer.Abstractions.Extensions
@inject BTCPayServer.Services.BTCPayServerEnvironment _env

<footer class="btcpay-footer">
Expand All @@ -24,6 +24,14 @@
<vc:icon symbol="donate"/>
<span style="margin-left:.4rem">Donate</span>
</a>
<a asp-controller="UIHome" asp-action="SwaggerDocs" class="d-flex align-items-center" target="_blank">
<vc:icon symbol="api"/>
<span style="margin-left:.4rem">API</span>
</a>
<a href="https://docs.btcpayserver.org/" class="d-flex align-items-center" target="_blank" rel="noreferrer noopener">
<vc:icon symbol="docs"/>
<span style="margin-left:.4rem">Docs</span>
</a>
@if (!string.IsNullOrEmpty(_env.OnionUrl) && !Context.Request.IsOnion())
{
<a href="@_env.OnionUrl" class="d-flex align-items-center" target="_onion" rel="noreferrer noopener" role="button" data-clipboard="@_env.OnionUrl" data-clipboard-confirm-element="CopyTorUrlText" style="min-width:9em;">
Expand Down
2 changes: 2 additions & 0 deletions BTCPayServer/wwwroot/img/icon-sprite.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.