<commit_before>extends /templates/base

block content

  ol.breadcrumb
    li
      a(href="/")
        span.glyphicon.glyphicon-home
    li
      a(href="/account", data-i18n="nav.account")
    li.active(data-i18n="account.subscription")

  .panel.panel-default
    .panel-heading
      if subscribed
        button.end-subscription-button.btn.btn-lg.btn-warning(data-i18n="subscribe.unsubscribe") Unsubscribe
      else if !me.isAnonymous()
        button.start-subscription-button.btn.btn-lg.btn-success(data-i18n="subscribe.subscribe_title") Subscribe

    .panel-body
      table.table.table-striped
        tr
          th Status
          td
            if subscribed
              strong(data-i18n="account.subscribed")
            else
              if active
                strong(data-i18n="account.active")
                .text-muted(data-i18n="account.status_unsubscribed_active")
              else
                strong(data-i18n="account.unsubscribed")
                .text-muted(data-i18n="account.status_unsubscribed")
        if activeUntil
          tr
            th(data-i18n="account.active_until")
            td= moment(activeUntil).format('l')
        if nextPaymentDate
          tr<commit_msg>Added translation key for subscription status label.<commit_after>extends /templates/base

block content

  ol.breadcrumb
    li
      a(href="/")
        span.glyphicon.glyphicon-home
    li
      a(href="/account", data-i18n="nav.account")
    li.active(data-i18n="account.subscription")

  .panel.panel-default
    .panel-heading
      if subscribed
        button.end-subscription-button.btn.btn-lg.btn-warning(data-i18n="subscribe.unsubscribe") Unsubscribe
      else if !me.isAnonymous()
        button.start-subscription-button.btn.btn-lg.btn-success(data-i18n="subscribe.subscribe_title") Subscribe

    .panel-body
      table.table.table-striped
        tr
          th(data-i18n="user.status") Status
          td
            if subscribed
              strong(data-i18n="account.subscribed")
            else
              if active
                strong(data-i18n="account.active")
                .text-muted(data-i18n="account.status_unsubscribed_active")
              else
                strong(data-i18n="account.unsubscribed")
                .text-muted(data-i18n="account.status_unsubscribed")
        if activeUntil
          tr
            th(data-i18n="account.active_until")
            td= moment(activeUntil).format('l')
        if nextPaymentDate
          tr
{'fraction_non_alphanumeric': 0.10898965791567224, 'fraction_numerical': 0.016706443914081145, 'mean_word_length': 2.03743961352657, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1074489', 'n_tokens_mistral': 773, 'n_tokens_neox': 737, 'n_words': 103}