docbrown/app/views/giveaways/edit.html.erb
Mac Siri 40f488d991 Migrate to Travis CI (part 2) (#591)
* Update Travis.yml

* Update README

* Update README

* Adjust test to not rely on env vars

* Update encryption

* Refactor

* Update env key

* Stub AWS calls

* Create ApplicationConfig

* Fix specs

* Fix lint

* Update ApplicationConfig

* Remove travis env vars

* Fix lint

* Extend character limit to 100

* Add env to travis

* Take out auto-restart after deploy

* Immediately discarded test cache

* Stub GA in request specs

* Stub Pusher

* Fix broken specs

* Update fixture

* Add CodeClimate id

* Change CodeClimate key

* Remove merge mistakes

* WIP

* Add Envied gem & Change README

* Add missing keys

* Add missing key

* Update fixture

* Fix broken spec

* Add Slack Notification for Travis

* Fix wording

* Fix typo
2018-07-20 20:17:18 -04:00

47 lines
1.6 KiB
Text

<h1>Editing Giveaway</h1>
<header class="giveaway-header" style="background-image:url(https://res.cloudinary.com/practicaldev/image/upload/c_scale,f_auto,fl_progressive,q_80,w_1000/v1487774090/stickers_e0antp.png)">
</header>
<div class="giveaway-container">
<% if !current_user %>
<center>
<p>* * *</p>
<h2>Please sign in</h2>
<br/>
<a href="/users/auth/twitter?callback_url=<%= ApplicationConfig["APP_PROTOCOL"] %><%= ApplicationConfig["APP_DOMAIN"] %>/users/auth/twitter/callback" class="sign-up-link" data-no-instant><span class="sign-up-text"><img src="<%= asset_url("nerd-emoji.png") %>" alt="nerd emoji" /> Sign in with Twitter</span></a>
<p>or</p>
<a href="/users/auth/github" class="sign-up-link" data-no-instant><span class="sign-up-text github-text"><img src="<%= asset_url("nerd-emoji.png") %>" alt="nerd emoji" /> Sign in with Github</span></a>
</center>
<% elsif current_user.onboarding_package_requested == false %>
<center>
<p>* * *</p>
<p>
It seems you've never requested stickers. </br>
Rest assured, we will have events and giveaways in the future for you look forward to.
</p>
<p>
❤️<br/>
Ben & Jess
</p>
</center>
<% elsif current_user.onboarding_package_requested_again == false %>
<%= render "form" %>
<% else %>
<center>
<p>* * *</p>
<h2>
Thank you for the support.
</h2>
<p>
Your stickers should arrive soon.
</p>
<p>
❤️<br/>
Ben & Jess
</p>
</center>
<% end %>
</div>