Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

conditionally display Google sign in or task list form

  • Loading branch information...
commit 4e4cc3b736e99a52e0546243d4ce7abae836d45f 1 parent 2b2a037
Steve Tipton authored
Showing with 11 additions and 4 deletions.
  1. +11 −4 app/views/home/index.html.slim
15 app/views/home/index.html.slim
View
@@ -1,7 +1,14 @@
h1 Welcome to Do-Date.com -- Your Ultimate Bucket List Solution!
-p Please Sign In with your Google account
-= link_to '/auth/google_oauth2' do
- = image_tag("google_128.png")
+
+- unless user_signed_in?
+ p Sign In with your Google account to create a Bucket List!
+ = link_to '/auth/google_oauth2' do
+ = image_tag("google_128.png")
- if user_signed_in?
- = current_user
+ = form_for :task_list, url: {controller: "task_lists", action: "create"}, method: "post" do |f|
+ div
+ = f.label :title
+ = f.text_field :title, {placeholder: "My Bucket List"}
+ div
+ = f.submit "Create"
Please sign in to comment.
Something went wrong with that request. Please try again.