<commit_before>.current_credits
  p= t('credits.index.current_credits_html', credits: @user.display_credits)

.table_title
  p= I18n.t('credits.index.refunds_title')
.table_content
  table.table.table-striped
    thead
      th= t('credits.index.project')
      th= t('credits.index.contribution_date')
      th= t('credits.index.value')
      th= t('credits.index.refund_expiration_date_html')
      th= t('credits.index.status')
    - @credits.each do |credit|
      tr[id="contribution_#{credit.id}"]
        td.project_name
          = link_to credit.project.name, credit.project, class: 'link_project'
        td.date= I18n.l(credit.created_at.to_date)
        td.value= credit.display_value
        td.term= I18n.l(credit.refund_deadline.to_date)
        td.status
          - if credit.requested_refund?
            = t('credits.index.requested_refund')
          - elsif credit.refunded?
            = t('credits.index.refunded')
          - else
            - if can? :request_refund, credit<commit_msg>removed cancan can? from user credits panel<commit_after>.current_credits
  p= t('credits.index.current_credits_html', credits: @user.display_credits)

.table_title
  p= I18n.t('credits.index.refunds_title')
.table_content
  table.table.table-striped
    thead
      th= t('credits.index.project')
      th= t('credits.index.contribution_date')
      th= t('credits.index.value')
      th= t('credits.index.refund_expiration_date_html')
      th= t('credits.index.status')
    - @credits.each do |credit|
      tr[id="contribution_#{credit.id}"]
        td.project_name
          = link_to credit.project.name, credit.project, class: 'link_project'
        td.date= I18n.l(credit.created_at.to_date)
        td.value= credit.display_value
        td.term= I18n.l(credit.refund_deadline.to_date)
        td.status
          - if credit.requested_refund?
            = t('credits.index.requested_refund')
          - elsif credit.refunded?
            = t('credits.index.refunded')
          - else
            - if credit.can_refund?
{'fraction_non_alphanumeric': 0.12720156555772993, 'fraction_numerical': 0.005870841487279843, 'mean_word_length': 2.704710144927536, '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': '2744069', 'n_tokens_mistral': 727, 'n_tokens_neox': 709, 'n_words': 101}