fairmondo/fairmondo

View on GitHub
app/views/cart_mailer/_donations.html.slim

Summary

Maintainability
Test Coverage
- if abacus.donation_listing.donation_total > 0
  .total
    table
      th colspan=2
        small
          - if role == 'buyer'
            | Der/die Verkäufer*in spendet für Deinen Einkauf
          - else
            | Für Deinen Verkauf fallen folgende Spenden an
      - abacus.donation_listing.donation_per_organisation.each_pair do |k, v|
        tr
          td
            small
              = 'an '
              = link_to k.nickname, profile_user_url(k)
              = ':'
          td
            small
              = humanized_money_with_symbol v
      tr
        td
          small
            | Gesamt:
        td
          small
            = humanized_money_with_symbol abacus.donation_listing.donation_total