<commit_before>.row
  .col-lg-6.col-lg-offset-3
    .page-header
      %h1= title 'Donations'

    %p
      Wallgig runs on your generous donations.
      Your contribution will help pay for hosting costs.
    %p
      Please help us reach our monthly goal.
      Any amount will help. Thank you for your support!

    .page-subheader
      %h3 Current goal
    .panel.panel-default
      .panel-heading= @donation_goal.name
      .panel-body.text-center
        .progress.progress-striped.active
          .progress-bar.progress-bar-success{:style => "width: #{@donation_goal.percentage_complete}%"}
            #{@donation_goal.percentage_complete}%
        %ul.list-inline
          %li
            %strong Collected:
            = number_to_currency(@donation_goal.collected)
          %li
            %strong Goal:
            = number_to_currency(@donation_goal.amount)

    .page-subheader
      %h3 Donate!


      .row
        .col-md-6
          = form_tag 'https://www.paypal.com/cgi-bin/webscr', target: '_top' do
            = hidden_field_tag 'cmd', '_s-xclick'
            = hidden_field_tag 'hosted_button_id', '5SX4R4RU95EVN'
            = submit_tag 'Donate any amount', class: 'btn btn-primary btn-lg btn-block'

        .col-md-2
          = form_tag 'https://www.paypal.com/cgi-bin/webscr', target: '_top' do
            = hidden_field_tag 'cmd', '_s-xclick'
            = hidden_field_tag 'hosted_button_id', 'X478EEM34RCQN'
            = submit_tag '$5', class: 'btn btn-primary btn-lg btn-block'

        .col-md-2
          = form_tag 'https://www.paypal.com/cgi-bin/webscr', target: '_top' do
            = hidden_field_tag 'cmd', '_s-xclick'
            = hidden_field_tag 'hosted_button_id', '3RAKNDQQERVLC'
            = submit_tag '$10', class: 'btn btn-primary btn-lg btn-block'

        .col-md-2
          = form_tag 'https://www.paypal.com/cgi-bin/webscr', target: '_top' do
            = hidden_field_tag 'cmd', '_s-xclick'
            = hidden_field_tag 'hosted_button_id', 'FA564AL5CH7H6'
            = submit_tag '$20', class: 'btn btn-primary btn-lg btn-block'

    .page-subheader
      %h3 Donations received
    %table.table
      %thead
        %tr
          %th Date
          %th User
          %th.text-right Currency
          %th.text-right Amount
      %tbody
        - @donations.each do |donation|
          %tr
            %td= donation.donated_at.try(:to_date)
            %td
              - if donation.anonymous?
                Anonymous
              - elsif donation.user.present?
                = link_to_user donation.user
              - elsif donation.email.present?
                = anonymize_email donation.email
              - else
                Anonymous

              - if myself?(donation.user)
                = link_to (donation.anonymous? ? 'Publicized' : 'Anonymized'), toggle_anonymous_donation_path(donation), method: :patch, class: 'btn btn-xs btn-default pull-right'
            %td.text-right= donation.currency
            %td.text-right= number_to_currency(donation.amount, format: '%n')
<commit_msg>Fix donation page html indentation<commit_after>.row
  .col-lg-6.col-lg-offset-3
    .page-header
      %h1= title 'Donations'

    %p
      Wallgig runs on your generous donations.
      Your contribution will help pay for hosting costs.

    %p
      Please help us reach our monthly goal.
      Any amount will help. Thank you for your support!

    - if @donation_goal.present?
      .page-subheader
        %h3 Current goal


      .panel.panel-default
        .panel-heading= @donation_goal.name
        .panel-body.text-center
          .progress.progress-striped.active
            .progress-bar.progress-bar-success{:style => "width: #{@donation_goal.percentage_complete}%"}
              #{@donation_goal.percentage_complete}%
          %ul.list-inline
            %li
              %strong Collected:
              = number_to_currency(@donation_goal.collected)
            %li
              %strong Goal:
              = number_to_currency(@donation_goal.amount)


    .page-subheader
      %h3 Donate!

    .row
      .col-md-6
        = form_tag 'https://www.paypal.com/cgi-bin/webscr', target: '_top' do
          = hidden_field_tag 'cmd', '_s-xclick'
          = hidden_field_tag 'hosted_button_id', '5SX4R4RU95EVN'
          = submit_tag 'Donate any amount', class: 'btn btn-primary btn-lg btn-block'

      .col-md-2
        = form_tag 'https://www.paypal.com/cgi-bin/webscr', target: '_top' do
          = hidden_field_tag 'cmd', '_s-xclick'
          = hidden_field_tag 'hosted_button_id', 'X478EEM34RCQN'
          = submit_tag '$5', class: 'btn btn-primary btn-lg btn-block'

      .col-md-2
        = form_tag 'https://www.paypal.com/cgi-bin/webscr', target: '_top' do
          = hidden_field_tag 'cmd', '_s-xclick'
          = hidden_field_tag 'hosted_button_id', '3RAKNDQQERVLC'
          = submit_tag '$10', class: 'btn btn-primary btn-lg btn-block'

      .col-md-2
        = form_tag 'https://www.paypal.com/cgi-bin/webscr', target: '_top' do
          = hidden_field_tag 'cmd', '_s-xclick'
          = hidden_field_tag 'hosted_button_id', 'FA564AL5CH7H6'
          = submit_tag '$20', class: 'btn btn-primary btn-lg btn-block'


    .page-subheader
      %h3 Donations received

    %table.table
      %thead
        %tr
          %th Date
          %th User
          %th.text-right Currency
          %th.text-right Amount
      %tbody
        - @donations.each do |donation|
          %tr
            %td= donation.donated_at.try(:to_date)
            %td
              - if donation.anonymous?
                Anonymous
              - elsif donation.user.present?
                = link_to_user donation.user
              - elsif donation.email.present?
                = anonymize_email donation.email
              - else
                Anonymous

              - if myself?(donation.user)
                = link_to (donation.anonymous? ? 'Publicized' : 'Anonymized'), toggle_anonymous_donation_path(donation), method: :patch, class: 'btn btn-xs btn-default pull-right'
            %td.text-right= donation.currency
            %td.text-right= number_to_currency(donation.amount, format: '%n')

{'fraction_non_alphanumeric': 0.11352307444926837, 'fraction_numerical': 0.010291043576137643, 'mean_word_length': 1.8970656730321378, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 8, 'lorem ipsum': 0, 'www.': 8, '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': '1668608', 'n_tokens_mistral': 2053, 'n_tokens_neox': 1955, 'n_words': 402}