Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{% if current_user %}
{% assign contributed = campaign.contributions | where: user_id: current_user.id | first %}
{% if contributed %}
Already contributed!
<script>
// Redirect back
window.location = '{{ request.referer }}'
</script>
{% else %}
Not contributed.
{% endif %}
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.