<commit_before>class PaymentHistoryListItem extends KDListItemView

  constructor: (options = {}, data) ->

    options.cssClass = KD.utils.curry 'clearfix', options.cssClass

    super options, data


  viewAppended: ->

    super

    @addSubView new KDButtonView
      title    : 'invoice'
      style    : 'solid medium'
      cssClass : 'invoice-btn'


  partial: (data) ->

    status = if data.paid
    then 'success'
    else ''

    """
      <div class='#{status} status-icon'><span></span></div>
      <div class='billing-info'>
        <span class='amount'>#{data.amount / 100}</span>
        <span class='invoice-date'>#{dateFormat(data.periodEnd, 'mmm dd, yyyy')}</span>
        <span class='card-number'>**** #{data.paymentMethod?.last4}</span>
      </div>
    """


<commit_msg>account: remove invoice button from billing invoices<commit_after>class PaymentHistoryListItem extends KDListItemView

  constructor: (options = {}, data) ->

    options.cssClass = KD.utils.curry 'clearfix', options.cssClass

    super options, data


  partial: (data) ->

    status = if data.paid
    then 'success'
    else ''

    """
      <div class='#{status} status-icon'><span></span></div>
      <div class='billing-info'>
        <span class='amount'>#{data.amount / 100}</span>
        <span class='invoice-date'>#{dateFormat(data.periodEnd, 'mmm dd, yyyy')}</span>
        <span class='card-number'>**** #{data.paymentMethod?.last4}</span>
      </div>
    """



{'fraction_non_alphanumeric': 0.16632722335369993, 'fraction_numerical': 0.005431093007467753, 'mean_word_length': 2.973045822102426, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 32, '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': '3625714', 'n_tokens_mistral': 488, 'n_tokens_neox': 458, 'n_words': 96}