{{response.title=base_title + ': ' + T('Donors')}} {{response.files.append(URL('static', 'css/content_pages.css'))}} {{extend 'uikit_layout.html'}} {{import img}} {{from OZfunc import fmt_pounds}} {{block masthead}}

{{=T('The OneZoom charity would like to thank the following generous donors')}}

{{end block}}
    {{cutoff_index = 0}} {{for i, row in enumerate(donor_rows):}}{{if i==items_per_page: break}} {{ if row["sum_paid"] <= cutoffs[cutoff_index] and (i<=0 or donor_rows[i-1]["sum_paid"]> cutoffs[cutoff_index]):}} {{ while ((row["sum_paid"] or 0.1) <= cutoffs[cutoff_index]): cutoff_index+=1}}
    {{ pass}}
  1. {{ if row["num_sponsorships"] > 1:}}

    {{=row["donor_name"]}}

    {{ if row["use_otts"]:}}
      {{ for OTT in row["use_otts"]:}} {{ image = images.get(OTT)}} {{ if image:}}
    • {{=T('Go to this species on the OneZoom tree of life')}}
    • {{ pass}} {{ pass}}
    {{ pass}} {{ else:}} {{ OTT = row["use_otts"][0]}} {{=T('Go to this species on the OneZoom tree of life')}}

    {{=T('Sponsored by') if row['verified_kind'] == 'by' else T('Sponsored for')}}
    {{=row['verified_name']}}

    {{ pass}}
  2. {{pass}}
{{if page:}}{{=A(XML('< '+str(T('Previous %(count)s') % {'count': items_per_page})+'..'),_href=URL(args=[page-1], vars=vars),_class='hefty')}}{{pass}} {{if n_items > items_per_page:}}{{=A(XML('..'+str(T('Next %(count)s') % {'count': items_per_page})+' >'),_href=URL(args=[page+1], vars=vars),_class='hefty')}}{{pass}}
{{=T('Particular thanks to our gold donors whose contributions total over')}}{{=fmt_pounds(cutoffs[1])}}{{=T(', and silver donors who have contributed over')}}{{=fmt_pounds(cutoffs[2])}}{{=T('in total.')}}