<commit_before>.widget.widget-balances
  h4(ng-click='showWidgetBalances=!showWidgetBalances'
    ng-init='showWidgetBalances=true')
    span(l10n) Balances
    i.fa.fa-fw.fa-caret-down(ng-class="{'closed': !showWidgetBalances}")

  div(rp-slide='showWidgetBalances')
    ul.fa-ul(ng-class="{'blank': !balances}")
      li.currency-xrp(ng-click="entry.show=!entry.show")
        i.fa-li.fa-money
        h5 XRP
        div(ng-show="account.Balance")
          span.balance(rp-popover
            rp-popover-placement="top"
            rp-popover-trigger="hover"
            rp-popover-delay
            l10n-rp-popover-content="Balance<br>{{ account.Balance | rpamount }} XRP"
            )
            {{ account.Balance | rpamount:{abs_precision: 2} }}
        div(ng-hide="account.Balance") 0.00
        dl(rp-slide="entry.show")
          dt
            span(l10n) Reserve
            | &#32;
            i.fa.fa-question-circle(
              rp-popover
              rp-popover-placement="bottom"
              l10n-rp-popover-title="Reserve amount"
              rp-popover-trigger="hover"
              l10n-data-content="Minimum amount of XRP required to fund your account. You cannot spend the reserve.")
          dd(ng-show="account.reserve")
            span.balance(rp-popover
              rp-popover-placement="top"
              rp-popover-trigger="hover"
              rp-popover-delay
              l10n-rp-popover-content="Reserve amount<br>{{ account.reserve | rpamount }} XRP"
              )
              {{ account.reserve | rpamount:{abs_precision: 2} }}
          dd(ng-hide="account.reserve") 0.00

          dt
            span(l10n) Available
            | &#32;
            i.fa.fa-question-circle(
              rp-popover
              rp-popover-placement="bottom"
              l10n-rp-popover-title="Available amount"
              rp-popover-trigger="hover"
              l10n-data-content="Total amount of XRP in your account minus the reserve amount.")
          dd(ng-show="account.max_spend")
            span.balance(rp-popover
              rp-popover-placement="top"
              rp-popover-trigger="hover"
              rp-popover-delay
              l10n-rp-popover-content="Available amount<br>{{ account.max_spend | rpamount }} XRP"
              )
              {{ account.max_spend | rpamount:{abs_precision: 2} }}
          dd(ng-hide="account.max_spend") 0.00

      li(
        ng-repeat="entry in balances"
        ng-class="'currency-' + (entry.total | rpcurrency | lowercase)"
        ng-click="entry.show=!entry.show"
        ng-init="entry.show=true")
        i.fa-li.fa-money(ng-class="'fa-' + (entry.total | rpcurrency | lowercase)")
        h5 {{ entry.total | rpcurrency }}
        div
          span.balance(rp-popover
            rp-popover-placement="top"
            rp-popover-trigger="hover"
            rp-popover-delay
            l10n-rp-popover-content="Balance<br>{{ entry.total | rpamount:{precision: 30, hard_precision: true} }} {{ entry.total | rpcurrency }}"
            )
            {{ entry.total | rpamount:2 }}
        dl(rp-slide="entry.show")
          div(ng-repeat="(issuer, component) in entry.components")
            dt(ng-show="component.gateway.app")
              span(rp-address-popover="component.gateway.app")
                {{entry.total | rpcurrency}}.{{component.gateway.app.name}}
            dt(ng-hide="component.gateway.app")
              {{entry.total | rpcurrency}}.
              span(rp-pretty-identity="issuer", rp-pretty-issuer-contacts="userBlob.data.contacts", rp-address-popover="issuer")
            dd
              span.balance(rp-popover
                rp-popover-placement="top"
                rp-popover-trigger="hover"
                rp-popover-delay
                l10n-rp-popover-content="Balance<br>{{ component | rpamount:{precision: 30, rel_min_precision: -2, hard_precision: true} }} {{ entry.total | rpcurrency }}"
                )
                {{ component | rpamount:2 }}

    div.widget_loader(ng-hide="balances")
      img(src="img/sections.png", class="loader")

    p(ng-show="$route.current.tabName == 'balance'"
      ng-hide="!loadingAccount && !account.Balance && loadState.account"
      )
      a(href="#/trust", l10n) Add Gateway<commit_msg>[FIX] Balance widget: Remove currencies at issuers<commit_after>.widget.widget-balances
  h4(ng-click='showWidgetBalances=!showWidgetBalances'
    ng-init='showWidgetBalances=true')
    span(l10n) Balances
    i.fa.fa-fw.fa-caret-down(ng-class="{'closed': !showWidgetBalances}")

  div(rp-slide='showWidgetBalances')
    ul.fa-ul(ng-class="{'blank': !balances}")
      li.currency-xrp(ng-click="entry.show=!entry.show")
        i.fa-li.fa-money
        h5 XRP
        div(ng-show="account.Balance")
          span.balance(rp-popover
            rp-popover-placement="top"
            rp-popover-trigger="hover"
            rp-popover-delay
            l10n-rp-popover-content="Balance<br>{{ account.Balance | rpamount }} XRP"
            )
            {{ account.Balance | rpamount:{abs_precision: 2} }}
        div(ng-hide="account.Balance") 0.00
        dl(rp-slide="entry.show")
          dt
            span(l10n) Reserve
            | &#32;
            i.fa.fa-question-circle(
              rp-popover
              rp-popover-placement="bottom"
              l10n-rp-popover-title="Reserve amount"
              rp-popover-trigger="hover"
              l10n-data-content="Minimum amount of XRP required to fund your account. You cannot spend the reserve.")
          dd(ng-show="account.reserve")
            span.balance(rp-popover
              rp-popover-placement="top"
              rp-popover-trigger="hover"
              rp-popover-delay
              l10n-rp-popover-content="Reserve amount<br>{{ account.reserve | rpamount }} XRP"
              )
              {{ account.reserve | rpamount:{abs_precision: 2} }}
          dd(ng-hide="account.reserve") 0.00

          dt
            span(l10n) Available
            | &#32;
            i.fa.fa-question-circle(
              rp-popover
              rp-popover-placement="bottom"
              l10n-rp-popover-title="Available amount"
              rp-popover-trigger="hover"
              l10n-data-content="Total amount of XRP in your account minus the reserve amount.")
          dd(ng-show="account.max_spend")
            span.balance(rp-popover
              rp-popover-placement="top"
              rp-popover-trigger="hover"
              rp-popover-delay
              l10n-rp-popover-content="Available amount<br>{{ account.max_spend | rpamount }} XRP"
              )
              {{ account.max_spend | rpamount:{abs_precision: 2} }}
          dd(ng-hide="account.max_spend") 0.00

      li(
        ng-repeat="entry in balances"
        ng-class="'currency-' + (entry.total | rpcurrency | lowercase)"
        ng-click="entry.show=!entry.show"
        ng-init="entry.show=true")
        i.fa-li.fa-money(ng-class="'fa-' + (entry.total | rpcurrency | lowercase)")
        h5 {{ entry.total | rpcurrency }}
        div
          span.balance(rp-popover
            rp-popover-placement="top"
            rp-popover-trigger="hover"
            rp-popover-delay
            l10n-rp-popover-content="Balance<br>{{ entry.total | rpamount:{precision: 30, hard_precision: true} }} {{ entry.total | rpcurrency }}"
            )
            {{ entry.total | rpamount:2 }}
        dl(rp-slide="entry.show")
          div(ng-repeat="(issuer, component) in entry.components")
            dt(ng-show="component.gateway.app")
              span(rp-address-popover="component.gateway.app")
                {{component.gateway.app.name}}
            dt(ng-hide="component.gateway.app")
              span(rp-pretty-identity="issuer", rp-pretty-issuer-contacts="userBlob.data.contacts", rp-address-popover="issuer")
            dd
              span.balance(rp-popover
                rp-popover-placement="top"
                rp-popover-trigger="hover"
                rp-popover-delay
                l10n-rp-popover-content="Balance<br>{{ component | rpamount:{precision: 30, rel_min_precision: -2, hard_precision: true} }} {{ entry.total | rpcurrency }}"
                )
                {{ component | rpamount:2 }}

    div.widget_loader(ng-hide="balances")
      img(src="img/sections.png", class="loader")

    p(ng-show="$route.current.tabName == 'balance'"
      ng-hide="!loadingAccount && !account.Balance && loadState.account"
      )
      a(href="#/trust", l10n) Add Gateway
{'fraction_non_alphanumeric': 0.14173689138576778, 'fraction_numerical': 0.012172284644194757, 'mean_word_length': 1.9752785515320335, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, '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': '3728886', 'n_tokens_mistral': 2779, 'n_tokens_neox': 2608, 'n_words': 364}