Back to Reddit

Renderablecampaign

r2/r2/templates/renderablecampaign.html

latest2.9 KB
Original Source

| ${thing.campaign.start_date.strftime("%m/%d/%Y")} | ${thing.campaign.end_date.strftime("%m/%d/%Y")} | ${thing.campaign.priority.text} | %if thing.campaign.is_house: ${_("N/A")} %else: ${format_currency(thing.total_budget_dollars, 'USD', locale=c.locale)} %endif %if not thing.campaign.is_house: %if not thing.paid: %if c.user_is_sponsor: ${_("free")} %else: ${_("pay")} %endif %elif not thing.free and not (thing.is_complete or thing.is_live): ${_("change")} %endif %if thing.free: ${_("freebie")} %endif %if not thing.free and c.user_is_sponsor and thing.needs_refund: ${_("refund")} %endif %endif | ${format_currency(thing.spent, 'USD', locale=c.locale)} | %if thing.ads_auction_enabled: %if getattr(thing.campaign, 'cost_basis') is not 0: ${thing.printable_bid} ${thing.cost_basis.upper()} %else: ${_("N/A")} %endif | %endif ${thing.campaign.target.pretty_name} | ${thing.location_str} | %if c.user_is_sponsor: %if thing.campaign.trans_country_match is None: N/A %elif thing.campaign.trans_country_match: no %else: ${thing.campaign.trans_billing_country}/${thing.campaign.trans_ip_country} %endif | %endif %if thing.is_complete: ${_("complete")} %elif thing.is_edited_live: ${_("edited live")} %else: %if thing.editable: ${_("edit")} %endif %if not thing.is_live: ${_("delete")} %endif %if thing.is_live: ${_("view")} %endif %if thing.pause_ads_enabled and thing.is_live: %if thing.campaign.paused: ${_("resume")} %elif thing.needs_approval: ${_("awaiting approval")} %else: ${_("pause")} %endif %endif %if thing.is_live and c.user_is_sponsor: ${_("terminate")} %endif %endif |