mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-19 05:33:31 +01:00
0f8da123b8
* UI: Move section navigation to sidebar * Scroll active nav link into view * Move CTAs to top right * Server Settings: Make Policies first page * Responsive table fixes * Spacing fixes * Add breadcrumb samples * store settings fixes * payment request fixes * updates pull payment title * adds invoice detail fix * updates server settings breadcrumbs + copy fix * Don't open Server Settings on Plugins page * Add breadcrumbs to pull payment views * adds breadcrumbs to account * server and store breadcrumb fixes * fixes access tokens * Fix payment processor breadcrumbs * fixes webhook 404 * Final touches * Fix test * Add breadcrumb for email rules page * Design system updates --------- Co-authored-by: dstrukt <gfxdsign@gmail.com>
19 lines
591 B
Plaintext
19 lines
591 B
Plaintext
@using BTCPayServer.Configuration;
|
|
@using Microsoft.AspNetCore.Mvc.ViewFeatures;
|
|
@inject IFileVersionProvider FileVersionProvider
|
|
@inject BTCPayServerOptions BTCPayServerOptions
|
|
|
|
<svg role="img" class="icon icon-@Symbol">
|
|
<use href="@GetPathTo(Symbol)"></use>
|
|
</svg>
|
|
@code {
|
|
public string GetPathTo(string symbol)
|
|
{
|
|
var versioned = FileVersionProvider.AddFileVersionToPath(default, "img/icon-sprite.svg");
|
|
var rootPath = (BTCPayServerOptions.RootPath ?? "/").WithTrailingSlash();
|
|
return $"{rootPath}{versioned}#{Symbol}";
|
|
}
|
|
[Parameter]
|
|
public string Symbol { get; set; }
|
|
}
|