Last active
January 23, 2018 10:57
-
-
Save crowdfundhq/fdffca0432574035265a99f7b4baedab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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