<commit_before>﻿@model ListTransactionsViewModel
@{
    Layout = "../Shared/_NavLayout.cshtml";
    ViewData["Title"] = "Manage wallet";
    ViewData.SetActivePageAndTitle(WalletsNavPages.Transactions);
}
<style type="text/css">
    .smMaxWidth {
        max-width: 200px;
    }

    @@media (min-width: 768px) {
        .smMaxWidth {
            max-width: 400px;
        }
    }

    .unconf > * {
        opacity: 0.5;
    }

    .switchTimeFormat {
        display: block;
        max-width: 150px;
        width: 150px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .badge-container:not(:last-child) {
        margin-bottom: 4px;
    }

    .badge-container {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }

    .removeTransactionLabelForm {
        display: inline;
        position: absolute;
        right: 4px;
    }

    .removeTransactionLabelForm button {
        cursor: pointer;
        display: inline;
        padding: 0;
        background-color: transparent;
        border: 0;
    }

    .transaction-details-icon {
        position: relative;
        padding-left: 12px;
        left: -8px;
    }
</style>
@if (TempData.HasStatusMessage())
{
    <div class="row">
        <div class="col-md-12 text-center">
            <partial name="_StatusMessage" />
        </div>
    </div>
}
<div class="row">
    <div class="col-md-12">
        If BTCPay Server shows you an invalid balance, <a asp-action="WalletRescan" asp-route-walletId="@this.Context.GetRouteValue("walletId")">rescan your wallet</a>. <br />
        If some transactions appear in BTCPay Server, but are missing on Electrum or another wallet, <a href="https://docs.btcpayserver.org/FAQ/FAQ-Wallet/#missing-payments-in-my-software-or-hardware-wallet">follow those instructions</a>.
    </div>
</div>
@if (Model.Labels.Any())
{

    <div class="row mt-4">
        <div class="col-md-12">
            <div class="d-flex flex-row card card-body p-2">
                <span class="mr-2">Filter by label:</span>
                @foreach (var label in Model.Labels)
                {
                    <a asp-route-labelFilter="@label.Value" class="badge mr-2 my-1 position-relative text-white d-block"
                       style="background-color: @label.Color;"><span class="text-white">@label.Value</span></a>
                }
            </div>
        </div>
    </div>
}
<div class="row">
    <div class="col-md-12"><commit_msg>Ensure tx labels display correctly when there are many (#2076)<commit_after>﻿@model ListTransactionsViewModel
@{
    Layout = "../Shared/_NavLayout.cshtml";
    ViewData["Title"] = "Manage wallet";
    ViewData.SetActivePageAndTitle(WalletsNavPages.Transactions);
}
<style type="text/css">
    .smMaxWidth {
        max-width: 200px;
    }

    @@media (min-width: 768px) {
        .smMaxWidth {
            max-width: 400px;
        }
    }

    .unconf > * {
        opacity: 0.5;
    }

    .switchTimeFormat {
        display: block;
        max-width: 150px;
        width: 150px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .badge-container:not(:last-child) {
        margin-bottom: 4px;
    }

    .badge-container {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }

    .removeTransactionLabelForm {
        display: inline;
        position: absolute;
        right: 4px;
    }

    .removeTransactionLabelForm button {
        cursor: pointer;
        display: inline;
        padding: 0;
        background-color: transparent;
        border: 0;
    }

    .transaction-details-icon {
        position: relative;
        padding-left: 12px;
        left: -8px;
    }
</style>
@if (TempData.HasStatusMessage())
{
    <div class="row">
        <div class="col-md-12 text-center">
            <partial name="_StatusMessage" />
        </div>
    </div>
}
<div class="row">
    <div class="col-md-12">
        If BTCPay Server shows you an invalid balance, <a asp-action="WalletRescan" asp-route-walletId="@this.Context.GetRouteValue("walletId")">rescan your wallet</a>. <br />
        If some transactions appear in BTCPay Server, but are missing on Electrum or another wallet, <a href="https://docs.btcpayserver.org/FAQ/FAQ-Wallet/#missing-payments-in-my-software-or-hardware-wallet">follow those instructions</a>.
    </div>
</div>
@if (Model.Labels.Any())
{

    <div class="row mt-4">
        <div class="col-md-12">
            <div class="d-flex flex-row align-items-start flex-wrap card card-body p-2">
                <span class="mr-2">Filter by label:</span>
                @foreach (var label in Model.Labels)
                {
                    <a asp-route-labelFilter="@label.Value" class="badge mr-2 my-1 position-relative text-white d-block"
                       style="background-color: @label.Color;"><span class="text-white">@label.Value</span></a>
                }
            </div>
        </div>
    </div>
}
<div class="row">
    <div class="col-md-12">
{'fraction_non_alphanumeric': 0.14153725181836052, 'fraction_numerical': 0.015333202280322391, 'mean_word_length': 2.0669077757685352, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 65, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1365607', 'n_tokens_mistral': 1666, 'n_tokens_neox': 1578, 'n_words': 334}